Are Twig compiled templates cached, and if yes, where? How often are compiled cached templates cleaned? On twig template change? On theme cache clear?
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
Comment #1
alexrayu commentedAnswer, 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.
Comment #2
alexrayu commentedComment #3
scor commentedWhere 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?
Comment #4
alexrayu commentedIt's not documented. Maybe I should rename the subject.
Comment #5
alexrayu commentedComment #6
alexrayu commentedPosted a document (http://drupal.org/node/1903374) - needs review and update as development progresses.
Comment #7
alexrayu commentedComment #8
scor commentedgreat! thank you @alexrayu!