Fix disabling lambda template cache.

Because it’s so much awesomer when config options actually do what they say they do.
This commit is contained in:
Justin Hileman
2014-03-25 18:16:35 -07:00
parent b61af6e4e8
commit 77d99d2bd3
+2 -2
View File
@@ -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);
}
}