Title: Cache not cleared after wp_update_post via php script
Last modified: August 22, 2016

---

# Cache not cleared after wp_update_post via php script

 *  [KennaMet](https://wordpress.org/support/users/kennamet/)
 * (@kennamet)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/cache-not-cleared-after-wp_update_post-via-php-script/)
 * Hi Donncha and fellow users,
    I’m programmatically updating a page using wp_update_post
   from a php script. However, the update doesn’t clear the supercache file. On 
   the other hand, when I make the same update manually via admin panel, the page
   cache is cleared as expected. Am I missing something? Any pointers are much appreciated.
   Thanks, Ken
 * [https://wordpress.org/plugins/wp-super-cache/](https://wordpress.org/plugins/wp-super-cache/)

The topic ‘Cache not cleared after wp_update_post via php script’ is closed to new
replies.

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

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [KennaMet](https://wordpress.org/support/users/kennamet/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/cache-not-cleared-after-wp_update_post-via-php-script/)
 * Status: not resolved