WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Plugin hook when pushing the "clear cache" button in admin bar (5 posts)

  1. skippybosco
    Member
    Posted 1 year ago #

    Took a look around and could not find a way to extend a WP Super Cache plugin to perform a secondary action only when the "clear single file cache" from the admin bar.

    Specifically I would like to add a bit of code to flush the CloudFlare cache of the page using their API any time someone clears the single file cache using the admin bar button.

    Any suggestions?

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. skippybosco
    Member
    Posted 1 year ago #

    I've located the function admin_bar_delete_page and can certainly add the code there, but would prefer to do it via plugin if possible.

  3. Donncha O Caoimh
    Member
    Plugin Author

    Posted 1 year ago #

    Good idea, I'll try to get that added before the next release.

  4. skippybosco
    Member
    Posted 1 year ago #

    Thanks. :-)

    FYI on CloudFlare API:

    http://www.cloudflare.com/docs/client-api.html

  5. skippybosco
    Member
    Posted 1 year ago #

    Hi, following up on this as I didn't see it in the latest changelogs.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic