PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Programmatically clear cache of specific page

Quick Cache Plugin. Speeds up WordPress®.

Programmatically clear cache of specific page

Postby kiinlee » January 29th, 2011, 3:56 pm

Hi! And thanks a lot for the great work on this plugin :)

I have one need though. It's pretty much like clearing the cache of a certain post or page when an update is made. I have a page where I aggregate different contents such as the latest posts and other tables from my database. So I'd need the cache of this page to be recreated when an update is made to a post and when i add content to these other tables (which are updated through the WP admin). Is there a way I can force that?

I guess the clearing-routines.inc.php file could help me but i'm not too sure.

Also, is there a way to cache external images?

Thanks for your help!
User avatar
kiinlee
Registered User
Registered User
 
Posts: 1
Joined: January 29, 2011

Re: Programmatically clear cache of specific page

Postby majick777 » April 30th, 2011, 12:15 pm

When you update a post the cache is updated anyways...

as far as tables, no, and I'm guessing this is where you are having a similar trouble to me,
I was updating custom field info without hitting publish and running into troubles..

if you can try putting this is the code for whatever is updating the tables:
if (function_exists('ws_plugin__qcache_purge_cache_dir')) {ws_plugin__qcache_purge_cache_dir ();}
that's my solution... hope that helps...
User avatar
majick777
Registered User
Registered User
 
Posts: 3
Joined: April 30, 2011


Return to Quick Cache Plugin

Who is online

Users browsing this forum: No registered users and 1 guest