Page 1 of 1

how to programmatically clear the cache of your site?

PostPosted: April 5th, 2011, 7:55 am
by midisa
I have a site elvish.biz. it adds entries by anonymous users. After adding a few entries, the entire structure of the site is completely lost (if visit to http://elvish.biz/category/programs page).
After clearing the cache, the appearance of the site once again restored.
I want to add records to a form, put the function of cleaning the cache of the site.
how to clear the entire cache site programmatically?
please help me.
thank you.

forgot to say. I have enabled https connection. when the cache fails, then some of the links obtained via http, and some links via https.
After clearing the cache, all references to becoming http.

Re: how to programmatically clear the cache of your site?

PostPosted: April 30th, 2011, 12:22 pm
by majick777
can you put this somwhere in your code:
if (function_exists('ws_plugin__qcache_purge_cache_dir')) {ws_plugin__qcache_purge_cache_dir ();}
worth a try...!