Browse Source

Disable html cache

star7th 9 years ago
parent
commit
882fa1cd0d
3 changed files with 5 additions and 1 deletions
  1. 2 0
      Application/Common/Conf/config.php
  2. 1 1
      composer.json
  3. 2 0
      install/ajax.php

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

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

+ 1 - 1
composer.json

@@ -5,7 +5,7 @@
     "description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
     "description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
     "keywords": ["showdoc","documents","Api"],
     "keywords": ["showdoc","documents","Api"],
     "homepage": "https://github.com/star7th/showdoc",
     "homepage": "https://github.com/star7th/showdoc",
-    "version":"v1.0.1",
+    "version":"v1.0.2",
     "license": "Apache-2.0",
     "license": "Apache-2.0",
     "authors": [
     "authors": [
         {
         {

+ 2 - 0
install/ajax.php

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