Support » Plugins and Hacks » [Plugin: WP Super Cache] Invalidate the cache?

  • Hi,

    I just installed wp super cache, and it’s pretty cool.

    However, I’m using a Twitter plugin that checks for new tweets once in a while, and show them in my sidebar (on all pages).

    What I’d like to do is to invalidate the cache each time that plugin finds new tweets. Invalidate the front page may be enough (having outdated tweets on post pages is not a big deal) but I’m thinking about invalidating everything.

    Is there some PHP function calls I can add to the Twitter plugin to invalidate the cache?

    Also, I have an other (not really related) question. There are 2 values for the expire time: wp-cache which is 1 hour by default, and wp super cache 6 hours by default. What’s the difference between the two?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You could call ‘wp_cache_no_postid()’ when the plugin updates. That will clear the whole cache.

    thank you!
    Note that it seems to be wp_cache_no_postid(0) (otherwise it causes an error).

    There are 2 values for the expire time: wp-cache which is 1 hour by default, and wp super cache 6 hours by default. What’s the difference between the two?

    I was wondering this myself?

    wp-cache is the php powered cache, super cache time is the expiry time of static html. The times are arbitrary, but if you find your cache directory filling up rapidly you should lower them.

    BTW – this is a FAQ in the readme.txt..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP Super Cache] Invalidate the cache?’ is closed to new replies.