jeroenvdheuve/twig-cache-key-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Modifies the twig cache key, to make the cache key the same across multiple directories.

1.0.0 2016-03-09 15:13 UTC

This package is not auto-updated.

Last update: 2023-05-27 19:22:51 UTC


README

Master: Build Status

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.