Are Twig compiled templates cached, and if yes, where? How often are compiled cached templates cleaned? On twig template change? On theme cache clear?

Comments

alexrayu’s picture

Answer, provided by FabianX in IRC: The compiled templates are stored in filesystem, in secret directory in sites/default/files/php_storage/.../. They are refreshed on clearing Twig cache, and currently not cleared on Drupal's cache clear.

alexrayu’s picture

Status: Active » Fixed
scor’s picture

Status: Fixed » Active

Where is that documented? If not yet documented, I think it should especially if they are not cleared on cache clear (a potential WTF). How does one clear Twig caches?

alexrayu’s picture

Title: Are Twig compiled templates cached, and if yes, where? » Are Twig compiled templates cached, and if yes, where? Need documentation.

It's not documented. Maybe I should rename the subject.

alexrayu’s picture

Status: Active » Needs work
alexrayu’s picture

Status: Needs work » Needs review

Posted a document (http://drupal.org/node/1903374) - needs review and update as development progresses.

alexrayu’s picture

Status: Needs review » Fixed
scor’s picture

great! thank you @alexrayu!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 1750250)