[Plugin: WP Super Cache] Function to delete specific page from cache (2 posts)

  1. microkid
    Posted 4 years ago #


    I am integrating WP Super Cache with a plugin I'm building. My plugin updates a specific page, and I want to delete the cached file for this page automatically, preferably by post_id.

    I've been trying to locate a function that does this, but haven't been able to find it. Does anyone know if such a function or method exists?


  2. Donncha O Caoimh
    Posted 4 years ago #

    From the developer docs at http://ocaoimh.ie/wp-super-cache-developers/

    Delete the cache files for a single post by using the wp_cache_post_change( $post_id ) function. It will attempt to delete every half-on cache file for that post, as well as any supercache files.

Topic Closed

This topic has been closed to new replies.

About this Topic