From 77d99d2bd3aebc73e58544ac016959831bb7354f Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 25 Mar 2014 18:16:35 -0700 Subject: [PATCH] Fix disabling lambda template cache. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because it’s so much awesomer when config options actually do what they say they do. --- src/Mustache/Engine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mustache/Engine.php b/src/Mustache/Engine.php index 9eb03d1..87008b6 100644 --- a/src/Mustache/Engine.php +++ b/src/Mustache/Engine.php @@ -662,9 +662,9 @@ class Mustache_Engine } if (!class_exists($className, false)) { - if (!$this->getCache()->load($className)) { + if (!$cache->load($className)) { $compiled = $this->compile($source); - $this->getCache()->cache($className, $compiled); + $cache->cache($className, $compiled); } }