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.
OpenCart has 3 places where cache is stored
image cache is in public_html/image/cache
public_html/image/cache
if you have vQmod public_html/vqmod/vqcache
public_html/vqmod/vqcache
system (data) cache public_html/system/cache
public_html/system/cache
You can delete files in these folders - do not delete folders cache- only the contents are inside.
cache
Hope this helps.
, admin /, .. admin/model/catalog/product.php addProduct():
admin
admin/model/catalog/product.php
addProduct()
$this->cache->delete('product');
'product' - , , . category, language, currency ..
'product'
category
language
currency