How to Exclude Post Type from Clearing Cache
-
We have this option checked:
Clear all cache files when a post or page is published or updated.
This is because other pages can be affected (and need to be updated) when a different post gets updated. This usually works well since we don’t update posts all the time.
However, we have discovered that a plugin we use for logging emails sent by WordPress does so by adding a post (of a custom type) for each email sent. So when we have lots of emails being sent (such as when people are registering for an event), the cache is constantly cleared. As you may imagine, this hurts performance a lot during those times.
Question: Is there a way to exclude a post type from triggering a cache clear? If so, this would solve the problem with emails clearing our page cache.
Thanks!
- The topic ‘How to Exclude Post Type from Clearing Cache’ is closed to new replies.