【发布时间】:2017-02-08 10:55:18
【问题描述】:
我为这个问题搜索了很多,但我没有找到 Prestashop 1.6 的正确答案,我制作了一个脚本来清除 Prestashop 缓存,smarty 缓存, 我从 adminPerformances 控制器获得了代码,
Tools::clearSmartyCache();
Tools::clearXMLCache();
Media::clearCache();
Tools::generateIndex();
我读到它从 /cache/smarty/cache 中清除了缓存,但是在执行脚本或单击性能页面中的清除缓存时,它不会从该文件夹中删除子文件夹。 任何人都知道“清除缓存”会影响哪些文件夹/文件。
谢谢。
【问题讨论】:
-
在我的情况下(PS 1.6.1.6),它只删除了一些文件夹而不是所有文件夹。在
cache/smarty/compile,你看last_flush在你调用Tools::clearSmartyCache();时是否更新了
标签: php caching smarty prestashop prestashop-1.6