wesmiler 5 лет назад
Родитель
Сommit
c657354d28
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      app/Models/CacheModel.php

+ 5 - 5
app/Models/CacheModel.php

@@ -201,17 +201,17 @@ class CacheModel extends Model
      */
     public function getCacheFunc($funcName, $id = '')
     {
-        $cache_key = $this->getCacheKey($funcName, $id);
-        $data = $this->getCache($cache_key);
-        if (!$data) {
+       // $cache_key = $this->getCacheKey($funcName, $id);
+        //$data = $this->getCache($cache_key);
+        //if (!$data) {
             $arg_list = func_get_args();
             if ($this->table) {
                 array_shift($arg_list);
             }
             $act = "cache" . ucfirst($funcName);
             $data = call_user_func_array(array($this, $act), $arg_list);
-            $this->setCache($cache_key, $data, 1);
-        }
+            //$this->setCache($cache_key, $data, 1);
+        //}
         return $data;
     }