• I want WP-SuperCache to rebuild certain pages after a post is added. But not rebuild the cache for the entire site. Is there a way?

    I’m using Content Views plug in & Content Views Pro. It generates a nice posts page with a featured image from each post and pagination. But it does not update the cached page when a new post is published because of WP-Supercache.

    I see the option to never cache all pages with URL including a string such as “/by-mod-date/” and “/sort-by-city/” but I do want the pages cached. I also want those pages re-cached after a post is added or updated.

    I also do not want to waste CPU cycles by rebuilding the cache for the entire site when a post is added or updated. That is unnecessary.

    What would be ideal is an option to rebuild only certain pages when a post is added or updated. Similar to the never cache option on the Advanced config page of WP-Supercache. The admin could add URL strings to trigger those page-caches to be deleted & rebuilt.

    Is there a way to do this? Or can this be a feature request?
    Thanks for your help.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I join the question. Perhaps there are some API functions to rebuild and/or delete the cache of a particular page?
    I could use them along with the WordPress hook publish_post to update the main page cache and the category pages, rather than rebuilding the cache of the entire site

    The plugin can’t do this, but you could write a plugin that deletes various cached URLs using the function wpsc_delete_url_cache.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Rebuild only certain pages after adding Post’ is closed to new replies.