WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: WP Super Cache] How to check if "ON" mode is being used (4 posts)

  1. Josh Jones
    Member
    Posted 4 years ago #

    I'm updating a plugin I wrote and one of the biggest things I'd like to do in this update is to check whether or not WP-Super-Cache is in fact enabled, and then check whether it's using "On" mode or "Half On" mode...

    If it's using "On" mode (since this mode caches static HTML files of the content) I want to simply display a message to my users letting them know they may want to clear their cache in order to show their latest changes.

    How can I go about checking if WP-Super-Cache is in "On" mode from my plugin?

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

  2. Josh Jones
    Member
    Posted 4 years ago #

    'ello?

  3. Donncha O Caoimh
    Member
    Posted 4 years ago #

    Just call the function "wp_cache_clear_cache" if it exists and that will clear the cache directory.

  4. Josh Jones
    Member
    Posted 4 years ago #

    Thanks. I don't think I'll clear it without first asking their permission, but I see now how I can achieve it.

Topic Closed

This topic has been closed to new replies.

About this Topic