WordPress.org

Forums

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

  1. performr
    Member
    Posted 1 year 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,
    Alex

    https://wordpress.org/plugins/latest-tweets-widget/

  2. timwhitlock
    Member
    Plugin Author

    Posted 1 year 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

Tags

No tags yet.