WordPress.org

Ready to get started?Download WordPress

Forums

Easy Pie Maintenance Mode
[resolved] Enhancement: Dump caches if using caching plugins (2 posts)

  1. tsimmons
    Member
    Posted 5 months ago #

    It would be great if you would enable dumping the cache if you are using a caching plugin (either of the big two) using the following code when enabled/disabled:

    // Clear Super Cache if enabled
    if ( function_exists( 'wp_cache_clear_cache' ) ) {
    	ob_end_clean();
    	wp_cache_clear_cache();
    }
    
    // Clear W3 Total Cache if enabled
    if ( function_exists( 'w3tc_pgcache_flush' ) ) {
    	ob_end_clean();
    	w3tc_pgcache_flush();
    }

    https://wordpress.org/plugins/easy-pie-maintenance-mode/

  2. Bob Riley
    Member
    Plugin Author

    Posted 5 months ago #

    Hey thanks for the suggestion and code! I'll add that in the next version.

    Bob

Reply

You must log in to post.

About this Plugin

About this Topic