Browse Source

wesmiler 报恩寺项目

wesmiler 5 years ago
parent
commit
c657354d28
1 changed files with 5 additions and 5 deletions
  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;
     }