Home > Backend Development > PHP Tutorial > Thinkphp开发时封闭缓存的方法

Thinkphp开发时封闭缓存的方法

WBOY
Release: 2016-06-13 11:01:04
Original
824 people have browsed it

Thinkphp开发时关闭缓存的方法

因在开发中需要经常修改,从而要经常删除缓存,才能看到效果。

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

1.找到\ThinkPHP\Common\convention.php和\ThinkPHP\Common\debug.php

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

debug.php中

'TMPL_CACHE_ON'=>false,      // 默认开启模板缓存
Copy after login

?

convention.php中

'TMPL_CACHE_ON'   => false,  // 默认开启模板编译缓存 false 的话每次都重新编译模板'ACTION_CACHE_ON'  => false,  // 默认关闭Action 缓存'HTML_CACHE_ON'   => false,   // 默认关闭静态缓存
Copy after login

?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template