【文件属性】:
文件名称:clear_cache:使用 shell 或在您的应用程序中清除 cakephp 缓存,还包括用于清除缓存的 debugkit 面板
文件大小:12KB
文件格式:ZIP
更新时间:2021-07-09 21:33:10
PHP
CakePHP 的 ClearCache 插件
ClearCache 插件提供了几种方法来清除 CakePHP 应用程序中的 CACHE 子文件夹和缓存引擎。
要求
master 分支有以下要求:
CakePHP 2.0 或更高版本。
PHP 5.3.0 或更高版本。
对于 CakePHP 1.3,使用 1.3 分支。
安装
克隆/复制此目录中的文件到app/Plugin/ClearCache
通过调用CakePlugin::load('ClearCache');确保插件在app/Config/bootstrap.php CakePlugin::load('ClearCache');
用法
控制台外壳
从您的 APP 文件夹运行:
# clear all cached files and configured engines
Console/cake ClearCache.cl
【文件预览】:
clear_cache-master
----Lib()
--------Panel()
--------ClearCache.php(3KB)
----README.mdown(5KB)
----View()
--------Elements()
--------ClearCache()
----Console()
--------Command()
----Controller()
--------ClearCacheAppController.php(541B)
--------ClearCacheController.php(3KB)
----composer.json(324B)
----Locale()
--------clear_cache.pot(2KB)