如何从PHP清除Opencart中的缓存 [英] How to clear cache in Opencart from PHP

查看:75
本文介绍了如何从PHP清除Opencart中的缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在某些情况下,我需要从PHP代码中清除缓存.我该怎么做.我知道opencart引擎中存在对象缓存,但是如何正确删除缓存.
还是可以只删除文件夹?
请提供建议.

I need to clear cache on certain condition from PHP code. How can I do so. I know that there is object Cache exists in opencart engine, but how do delete cache correctly.
Or it is possible to delete just folders ?
Please give advice.

推荐答案

在OpenCart中,有3个存储缓存的地方

In OpenCart there are 3 places that store cache

  1. 图像缓存位于 public_html/image/cache

如果您有vQmod public_html/vqmod/vqcache

if you have vQmod public_html/vqmod/vqcache

系统(数据)缓存 public_html/system/cache

您可以删除这些文件夹中的文件-请勿删除 cache 文件夹-仅删除其中的内容.

You can delete files within these folders - do not delete the cache folders - only the content inside.

我希望这会有所帮助.

这篇关于如何从PHP清除Opencart中的缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆