WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP Super Cache] Invalidate the cache? (5 posts)

  1. Anonymous
    Unregistered
    Posted 5 years ago #

    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?

  2. Donncha O Caoimh
    Member
    Posted 5 years ago #

    You could call 'wp_cache_no_postid()' when the plugin updates. That will clear the whole cache.

  3. Anonymous
    Unregistered
    Posted 5 years ago #

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

  4. KidBrax
    Member
    Posted 5 years ago #

    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?

  5. Donncha O Caoimh
    Member
    Posted 5 years ago #

    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..

Topic Closed

This topic has been closed to new replies.

About this Topic