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

  1. skippybosco
    Posted 3 years 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?


  2. skippybosco
    Posted 3 years 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
    Plugin Author

    Posted 3 years ago #

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

  4. skippybosco
    Posted 3 years ago #

    Thanks. :-)

    FYI on CloudFlare API:


  5. skippybosco
    Posted 3 years 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

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic