thinkphp关闭缓存_Thinkphp关闭缓存方法总结

时间:2017-12-06  来源:thinkphp  阅读:

为了开发的方便,可以把缓存给去除。

1.找到ThinkPHPCommonconvention.php和ThinkPHPCommondebug.php

2.打开这两个文件找到你想要的设置即可。

debug.php中

 代码如下 复制代码

"TMPL_CACHE_ON"=>false,      // 默认开启模板缓存

convention.php中"

 代码如下 复制代码

TMPL_CACHE_ON"   => false,  // 默认开启模板编译缓存 false 的话每次都重新编译模板

"ACTION_CACHE_ON"  => false,  // 默认关闭Action 缓存

"HTML_CACHE_ON"   => false,   // 默认关闭静态缓存

thinkphp 怎么关闭全部缓存?(baidu知道的满意回答)

 代码如下 复制代码

APP_DEBUG=>true
DB_FIELD_CACHE=>false
HTML_CACHE_ON=>false


关闭ThinkPHP模板缓存


最后自己找见了,在config.php里面加上一句

 代码如下 复制代码

"TMPL_CACHE_ON" => false,
"TMPL_CACHE_ON" => false,

这样每次运行都重新生成缓存

thinkphp关闭缓存_Thinkphp关闭缓存方法总结

http://m.bbyears.com/jiaocheng/37576.html

推荐访问:thinkphp漏洞 thinkphp框架原理
相关阅读 猜你喜欢
本类排行 本类最新