title | issue |
---|---|
Use configured twig.cache dir for twig cache |
NEXT-25869 |
- Changed the following services to use the configured
twig.cache
directory instead of thekernel.cache_dir
directory to store the twig caches:\Shopware\Core\Framework\Adapter\Twig\TemplateFinder
\Shopware\Core\Content\Rule\DataAbstractionLayer\RulePayloadSubscriber
\Shopware\Core\Framework\Adapter\Twig\StringTemplateRenderer
\Shopware\Core\Framework\Script\Execution\ScriptLoader
You can now use the twig.cache
configuration to configure the directory where twig caches are stored as described in the symfony docs. This is independent from the kernel.cache_dir
configuration, but by default it will still fallback to the %kernel.cache_dir%/twig
directory.
This is useful when the kernel.cache_dir
is configured to be a read-only directory.