فهرست منبع

Fix disabling lambda template cache.

Because it’s so much awesomer when config options actually do what they say they do.
Justin Hileman 11 سال پیش
والد
کامیت
77d99d2bd3
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/Mustache/Engine.php

+ 2 - 2
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);
                 }
             }