Download the PHP package setono/twig-cache-purger-bundle without Composer
On this page you can find all versions of the php package setono/twig-cache-purger-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setono/twig-cache-purger-bundle
More information about setono/twig-cache-purger-bundle
Files in setono/twig-cache-purger-bundle
Package twig-cache-purger-bundle
Short Description A Symfony bundle that allows you to purge single templates in the Twig cache
License MIT
Informations about the package twig-cache-purger-bundle
Twig Cache Purger Bundle
Purge the cache for individual Twig template files instead of removing the whole cache directory.
Requirements
- PHP 8.2+
- Symfony 6.0/7.0/8.0
- Twig 2.x or 3.x
Installation
This will install the bundle and enable it if you're using Symfony Flex. If you're not using Flex, add the bundle
manually to bundles.php:
Usage
The bundle provides a PurgerInterface service that you can inject into your services to purge individual Twig
template cache files by their logical template name:
The purger resolves the logical template name to its compiled cache file, invalidates the opcache/APC bytecode cache, and deletes the file. The next time the template is rendered, Twig will recompile it from the source.
All versions of twig-cache-purger-bundle with dependencies
ext-filter Version *
symfony/config Version ^6.0 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.0 || ^7.0 || ^8.0
symfony/filesystem Version ^6.0 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.0 || ^7.0 || ^8.0
symfony/twig-bundle Version ^6.0 || ^7.0 || ^8.0
twig/twig Version ^2.0 || ^3.0