diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2015-02-25 06:58:08 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2015-02-25 06:58:08 +0300 |
commit | 07fd55f9e53533b5718fd43a86cdb31317dd0fa2 (patch) | |
tree | e78bf4b2095a863e65eff0842be4d9e6ec386bc9 /core/View.php | |
parent | f1cabd4021a311df77a938c309969a112f043694 (diff) |
Make sure it actually clears the cached files, not only the internal template cache
This fixes some problems that users reported when manually updating. They followed the manual step by step guide yet still some old twig templates were loaded. Noticed we never deleted/cleared the cached twig files which we do now.
Diffstat (limited to 'core/View.php')
-rw-r--r-- | core/View.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/View.php b/core/View.php index 6c8244c548..27fe7569a5 100644 --- a/core/View.php +++ b/core/View.php @@ -364,9 +364,11 @@ class View implements ViewInterface * @ignore */ public static function clearCompiledTemplates() - { + { $twig = new Twig(); - $twig->getTwigEnvironment()->clearTemplateCache(); + $environment = $twig->getTwigEnvironment(); + $environment->clearTemplateCache(); + $environment->clearCacheFiles(); } /** |