In a website build in shopware, I'm changing the theme files but when I changed for example the (meta.twig) file it is affecting the website, but when I edit (index.twig) it is not affecting it. What could cause this problem?
1 Answers
1
votes
Most probably your Twig file is cached, either by the symfony build-in twig cache or the full page cache. You might need to clear the cache in the administration or via console (php bin/console cache:clear
).
You can deactivate the http-cache that is enabled by default in the installation package in your .env-file by setting SHOPWARE_HTTP_CACHE_ENABLED
to false
. The twig cache can be deactivated in the vendor/shopware/platform/src/Core/Framework/Resources/config/packages/twig.yaml
with cache: false
Alt + C
on Windows andControl + C
on Mac. – sobyte