How to clear cache in PHP from Opencart

I need to clear the cache from certain PHP code under certain conditions. How can i do this. I know that a Cache object exists in the opencart engine, but how to delete the cache correctly.
Or can only folders be deleted?
Please give some advice.

+4
source share
2 answers

OpenCart has 3 places where cache is stored

  • image cache is in public_html/image/cache

  • if you have vQmod public_html/vqmod/vqcache

  • system (data) cache public_html/system/cache

You can delete files in these folders - do not delete folders cache- only the contents are inside.

Hope this helps.

+8
source

, admin /, .. admin/model/catalog/product.php addProduct():

$this->cache->delete('product');

'product' - , , . category, language, currency ..

+3

All Articles