WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Refresh all posts of a single category only (1 post)

  1. Virendar
    Member
    Posted 3 years ago #

    Hello

    Here is my situation:

    I am on a single post page. Let's say the article is called "Fat Dogs". This post is filed under the category "Dogs".

    On the sidebar of this page, is a dynamic php code that lists all of the other posts of the same category. Therefore, it lists a link to the article called "Skinny Dogs", because that post was filed under the category "Dogs".

    Makes sense?

    Both of these pages have been cached.

    1 day later I make a new post, called "Medium Dogs". I file it under the category "Dogs". I visit the post page for "Medium Dogs", I see both the Skinny and Fat Dogs articles in the sidebar.

    I click the Fat Dogs article. I am now on Fat Dogs article, I look on the sidebar...I do not see the Medium Dogs article. Because super cache makes it static html....

    I do not want to enable garbage collecting.

    Rather, I want something a little custom. When I make a New Post under the category "Dogs", I want Super cache to automatically flush the cache of all the old posts in the same category "Dogs".

    How can I go about doing this?

    P.S. a similar problem would be those sites that have "Next, Previous" post links at the bottom of their posts...the 2nd latest post would usually not have a "Next" link to the most recent post because it was cached".

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic