magento快速清空缓存PHP脚本
时间:2015-07-14 13:42来源:未知 作者:最模板 点击:次
require app/Mage.php;if (!Mage::isInstalled()) { echo Application is not installed yet, please complete install wizard first.; exit;}Mage::app()-getCacheInstance()-flush();echo Flushed cache successfully; 把代码保存在网站根目录下,
require 'app/Mage.php';
if (!Mage::isInstalled()) {
echo "Application is not installed yet, please complete install wizard first.";
exit;
}
Mage::app()->getCacheInstance()->flush();
echo 'Flushed cache successfully';
把代码保存在网站根目录下,通过浏览器访问则可快速清空magento站点缓存
(责任编辑:最模板) |
------分隔线----------------------------