Thinkphp in the data cache, including file mode, shared memory mode and database mode in a variety of ways to cache, through the plug-in method can also increase the need for later cache classes, so that application development can choose more suitable for their own cache, so as to effectively improve the efficiency of application execution. The caching methods currently supported include: File, Apachenote, Apc, Eaccelerator, Memcache, Shmop, Sqlite, Db, Redis, and XCache.
For more detailed information, please see: http://www.111cn.net/phper/thinkPhp/45890.htm
For the convenience of development, the cache can be removed.
1. Find thinkphp/common/convention.php and thinkphp/common/debug.php
2. Open these two files to find the settings you want.
(Bo main Note: This should be the old version of the thinkphp configuration path, the new version please refer to the latest development manual)
In debug.php
' tmpl_cache_on '= =false, // Open Template cache by default
In convention.php
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, // close static cache by default
thinkphp How do I close all caches?
Truefalse false
Close the thinkphp template cache
Finally I find myself, and add a sentence in the config.php.
' tmpl_cache_on ' false , ' tmpl_cache_on ' false
This will regenerate the cache each time it is run
(This article is based on the old version of thinkphp, for reference only)
Thinkphp Closing Cache Method Summary (GO)