jeroenvdheuve / twig-cache-key-bundle
Modifies the twig cache key, to make the cache key the same across multiple directories.
Installs: 3 799
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.5
- symfony/config: ~2.3|~3.0
- symfony/dependency-injection: ~2.3|~3.0
- symfony/http-kernel: ~2.3|~3.0
- symfony/twig-bundle: ~2.7|~3.0
- symfony/yaml: ~2.3|~3.0
Requires (Dev)
- phpunit/phpunit: ~4.4|~5
This package is not auto-updated.
Last update: 2023-05-27 19:22:51 UTC
README
Description
Makes Twig cache keys relative and therefor reusable across different environments/directory structures.
The default \Symfony\Bundle\TwigBundle\Loader\FilesystemLoader returns an absolute path as cache key. For instance /var/www/project or /home/user/project with the same project content would generate a different cache key.
By removing the absolute part, the cache becomes reusable and cache only need to be generated once.