Latest Tweets Widget
Invalidate (wp-super-)cache if there's a new tweet (2 posts)

  1. performr
    Posted 2 years ago #

    I'd like to invalidate all or a sub-set of pages in the wp-super-cache cache whenever there is a change in latest tweets.
    What is the best way to go about this? Is there a hook in latest-tweets-widget I can use to initialize a clear cache command?

    Thanks in advance,


  2. timwhitlock
    Plugin Author

    Posted 2 years ago #

    The plugin has no concept of "new" tweets. When its own cache is missed, tweets are pulled from Twitter, but there is no way to say they are new. They are either cached or not cached, or the cache is expired.

    If you want a hook that only fires only when pulling tweets from Twitter, then latest_tweets_render_text is the best candidate

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.