"Clear Cache When a Post or Page is Published in WordPress" – Custom post types?
-
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.
- The topic ‘"Clear Cache When a Post or Page is Published in WordPress" – Custom post types?’ is closed to new replies.