Title: Wrong Post add/update flush
Last modified: September 27, 2020

---

# Wrong Post add/update flush

 *  Resolved Anonymous User 18303504
 * (@anonymized-18303504)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-post-add-update-flush/)
 * Default WordPress posts weren’t cached, so I added them, but custom posts were
   cached automatically without any additional code implementation.
 * I tried testing the caching and it does works but whenever I edit one post in
   a post type then it flushes the entire cache of that particular post type only.
   Shouldn’t it flush only a single cached post and the post where it was included?

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

 *  Plugin Author [Richard Korthuis](https://wordpress.org/support/users/rockfire/)
 * (@rockfire)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-post-add-update-flush/#post-13463540)
 * Hi @goodhub
 * Thank you for using our plugin!
 * Your issue is really strange because the default WordPress endpoints (like the
   one for posts) should be cached automatically and the flushing of those caches
   upon editing a post should also work out of the box.
 * Have you tried disabling all other plugins and returning to a default WordPress
   theme? It seems like there is some sort of conflict. And which WordPress version
   are you running?
 *  Thread Starter Anonymous User 18303504
 * (@anonymized-18303504)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-post-add-update-flush/#post-13464865)
 * I am using WordPress 5.5.
    I have to add code to the cache posts endpoint.
 * Flushing is working but it flushes the entire cache from that particular endpoint.
   
   I will try with localhost as I am not allowed to disable the plugins.
 *  Plugin Author [Richard Korthuis](https://wordpress.org/support/users/rockfire/)
 * (@rockfire)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-post-add-update-flush/#post-13497186)
 * Hi @goodhub
 * Did you test it with localhost?
 * I just did a test on a clean WordPress 5.5.1 install, with only our plugin installed
   and activated. It is working as expected: the posts endpoint is cached without
   any additional code and editing a single post only flushes the caches related
   to that post.

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

The topic ‘Wrong Post add/update flush’ is closed to new replies.

 * ![](https://ps.w.org/wp-rest-cache/assets/icon-256x256.png?rev=3328849)
 * [WP REST Cache](https://wordpress.org/plugins/wp-rest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rest-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Richard Korthuis](https://wordpress.org/support/users/rockfire/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/wrong-post-add-update-flush/#post-13497186)
 * Status: resolved