WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. microkid
    Member
    Posted 3 years ago #

    Hi,

    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?

    TIA

  2. Donncha O Caoimh
    Member
    Posted 3 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