Title: Delete cache after update post
Last modified: October 29, 2021

---

# Delete cache after update post

 *  Resolved [ivanjst2](https://wordpress.org/support/users/ivanjst2/)
 * (@ivanjst2)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/delete-cache-after-update-post/)
 * If I update the post then I need to click “Flush Object Cache” to clear all caches
   and wait to regenerate them. There are more than 170000 files to regenerate…
   
   Is it possible to clear only the cache of the page that was updated?

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

 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/delete-cache-after-update-post/#post-15020161)
 * Hi,
 * When updating the post, create or delete, the cache is automatically updated.
   No need to “Flush Object Cache” unless if you want to start from fresh or something
   is not working as it should.
 * Thanks.
 *  Thread Starter [ivanjst2](https://wordpress.org/support/users/ivanjst2/)
 * (@ivanjst2)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/delete-cache-after-update-post/#post-15020221)
 * Understand. But I used an external script to update the posts directly in the
   database, without going through the wordpress function. Is it only possible to
   update the cache base automatically if the posts are updated through the native
   wordpress function?
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/delete-cache-after-update-post/#post-15020246)
 * Hi,
 * Since you update the post directly without using the WordPress function, docket
   cache can’t handle it. You need to run wp_cache_flush() function to flush the
   cache entirely.
 * Currently, Yes, it is only possible to update the cache base automatically if
   the posts are updated through the native WordPress function.
 * Thanks.
 *  Thread Starter [ivanjst2](https://wordpress.org/support/users/ivanjst2/)
 * (@ivanjst2)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/delete-cache-after-update-post/#post-15040749)
 * Hi, thanks for the reply. Resolved. “wp_update_post($my_post)”;
 *  Plugin Author [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * (@nawawijamili)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/delete-cache-after-update-post/#post-15111169)
 * Hi, glad to hear that.
 * Thanks.

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

The topic ‘Delete cache after update post’ is closed to new replies.

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

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 5 replies
 * 2 participants
 * Last reply from: [Nawawi Jamili](https://wordpress.org/support/users/nawawijamili/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/delete-cache-after-update-post/#post-15111169)
 * Status: resolved