Browse Source

Disable html cache

star7th 9 years ago
parent
commit
0d78079d72
2 changed files with 4 additions and 0 deletions
  1. 2 0
      Application/Common/Conf/config.php
  2. 2 0
      install/ajax.php

+ 2 - 0
Application/Common/Conf/config.php

@@ -25,6 +25,8 @@ return array(
     'URL_CASE_INSENSITIVE'=>true,
     'SHOW_ERROR_MSG'        =>  true,    // 显示错误信息,这样在部署模式下也能显示错误
     'STATS_CODE' =>'',  //可选,统计代码
+    'TMPL_CACHE_ON' => false,//禁止模板编译缓存
+    'HTML_CACHE_ON' => false,//禁止静态缓存
     //上传文件到七牛的配置
     'UPLOAD_SITEIMG_QINIU' => array(
                     'maxSize' => 5 * 1024 * 1024,//文件大小

+ 2 - 0
install/ajax.php

@@ -77,6 +77,8 @@ return array(
     'URL_CASE_INSENSITIVE'=>true,
     'SHOW_ERROR_MSG'        =>  true,    // 显示错误信息,这样在部署模式下也能显示错误
     'STATS_CODE' =>'',  //可选,统计代码
+    'TMPL_CACHE_ON' => false,//禁止模板编译缓存
+    'HTML_CACHE_ON' => false,//禁止静态缓存
     //上传文件到七牛的配置
     'UPLOAD_SITEIMG_QINIU' => array(
                     'maxSize' => 5 * 1024 * 1024,//文件大小