Thinkphp Close Cache method, thinkphp close cache
Because it needs to be changed frequently in development, it is necessary to delete the cache frequently to see the effect.
So for the convenience of development, you can remove the cache.
1. Find \thinkphp\common\convention.php and \thinkphp\common\debug.php
2. Open these two files to find the settings you want.
In debug.php
Copy the Code code as follows:
' tmpl_cache_on ' =>false,//Open template cache by default
convention.php in '
Copy the Code code as follows:
Tmpl_cache_on ' = False,//default to turn on the template compilation cache false to recompile the template every time
' action_cache_on ' = false,//close ACTION cache by default
' html_cache_on ' = false,//default off static cache
thinkphp How do I close all caches? (Baidu knows the satisfactory answer)
Copy the Code code as follows:
App_debug=>true
Db_field_cache=>false
Html_cache_on=>false
http://www.bkjia.com/PHPjc/1022789.html www.bkjia.com true http://www.bkjia.com/PHPjc/1022789.html techarticle thinkphp The caching method is turned off, the thinkphp shutdown cache is often modified in development so that the cache can be removed frequently to see the effect. So in order to develop the convenience, can put the slow ...