Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Twig parent templates not updated on watch #14
If a Twig template changes and it is the parent of another Twig file, the changes made to the parent are not reflected since they've been cached by Twig. A possible solution would be to create a new Twig manager every time a parent template changes since I can't find a way to clear Twig's cached templates.
This might require a bit more of effort. Even clearing the filesystem cache and creating a new Twig Environment won't clear whatever cache Twig has for parent templates. Meh
Edit: The problem isn't really due to caching but more so the way Twig loads compiled templates into the run time as classes. Because the name of those classes are renaming the same regardless of the changes, it's using what has already been defined. How I'm using Twig needs to be changed or a workaround needs to be found