在调试magento的时候,我们其实不需要为了每一个小的的改动而刷新缓存(cache)。我建议在magento网站没有正式运营前,关闭缓存是很有必要和方便的。
关闭缓存的地方:
后台,system => cache management => cache control => all change => disable
这样我们就能及时看到我们修改的成果了。
如果嫌麻烦,也可以用有以下几种方法
方法一:ssh命令行清除缓存

cd ../magentonotes.com/mangento/var/cache
rm -rf *
方法二:magento内部里加入清除缓存的功能代码

mage::app()->cleancache();
或者
age::app()->getcache()->clean();
方法三:服务器里加入定时刷新缓存脚本

$magento_bootstrap= '../app/mage.php';
require_once $magento_bootstrap;
umask(0);
mage::run();