Page 1 of 1

[SOLVED] need to reset cache after updating product data

Posted: Fri Feb 03, 2012 9:38 am
by wildtech
HI

I have written an interface to OC from Our Stock system via http SOAP commands and all working fine when looking at the data in the database, just that the web pages are not reflecting changes immediately. Currently I need to manually delete the cache files.

Is there a more elegant way to refresh the web page views as like when you update data via the Admin section it is immediate in any changes?

Php is not the language I know enough to fix this.

I have tried after Commiting the data the follwoing code that should work, but doesn't.

$dir = '/system/cache/'; - FIX is $dir = './system/cache/';
foreach(glob($dir.'*.*') as $v){
unlink($v);
}

Any help appreciated.

Brenton