【问题标题】:Cakephp 2.0 View Cache Not WorkingCakephp 2.0 视图缓存不起作用
【发布时间】:2012-02-17 14:47:02
【问题描述】:

Core.php有以下内容

Configure::write('debug', 0); 
Configure::write('Cache.check', true); 
Cache::config('default', array('engine' => 'File')); 

在控制器中我尝试了以下操作

 var $cacheAction = true; 
var $cacheAction = array( 
                  'view/' => 5000 
               ) 
var $cacheAction = "1 hour";

app/tmp 中的view 文件夹始终为空

【问题讨论】:

    标签: caching cakephp-2.0


    【解决方案1】:

    尝试从“view/”中删除斜线,缓存助手无法路由它只是进行字符串匹配。

    【讨论】:

      猜你喜欢
      • 2012-09-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-25
      • 1970-01-01
      • 2018-02-12
      • 1970-01-01
      • 2012-08-15
      • 1970-01-01
      相关资源
      最近更新 更多