• I’m using a site that requires a lot of custom post types and then dynamically grabs information from them to make other pages. WP Super Cache is great because otherwise this sort of thing is very computationally intensive (it takes .4 seconds to generate some of these pages, because it involves trolling over and processing the contents of dozens of posts).

    The problem is, “Clear Cache When a Post or Page is Published in WordPress” does not seem to activate when publishing or updating a custom post type.

    Am I wrong about this?

    More details: I have a custom posttype that we might call “my_events”. Each one represents data used to generate a page about an event. There is a single-my_events.php template that shows individual events. This seems to update correctly whenever I update the event in question.

    But I also have a page that uses a shortcode function to programmatically get all of the events (e.g. [all-events]). When I update an individual event, the page does not update. I would have expected the “Clear cache” setting above to clear out the entire cache when I save my custom post type, but it doesn’t seem like it is.

    Edit: Actually, I’m not sure anymore. I tried opening the page with another browser (totally logged out) and it seems to be updated again. Hmm.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I haven’t used custom post types so it would be great to get more feedback about this. Does it look like it’s still caching? Can you enable debugging just before you update a post or a post updates itself? That will record which pages get cleared.

    We’re using custom post types, and I’ve just verified that, with “Clear Cache When a Post or Page is Published in WordPress” checked, the cache does not clear when a custom post type is updated, but does clear when a blog post is updated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"Clear Cache When a Post or Page is Published in WordPress" – Custom post types?’ is closed to new replies.