The method for disabling caching during Thinkphp development needs to be modified frequently during development, so that the cache must be deleted frequently to see the effect. Therefore, cache can be removed for ease of development. 1. find ThinkPHPCommonconvention. php and ThinkPHPCommondebug. php2. open these two files and find the settings you want. Disable caching when developing TMPL_CACH Thinkphp in debug. php
Because it needs to be modified frequently during development, the cache must be deleted frequently to see the effect.
Therefore, cache can be removed for ease of development.
1. find \ ThinkPHP \ Common \ convention. php and \ ThinkPHP \ Common \ debug. php.
2. open these two files and find the settings you want.
Debugging. php
'Tmpl _ CACHE_ON '=> false, // The template cache is enabled by default.
?
Convention. php
'Tmpl _ CACHE_ON '=> false, // if the template compilation cache is enabled by default, false is used to re-compile the template 'action _ CACHE_ON' => false, // by default, 'HTML _ CACHE_ON '=> false is disabled. // static cache is disabled by default.
?