WordPress.org

Forums

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

  1. tsimmons
    Member
    Posted 1 year 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 1 year ago #

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

    Bob

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Pie Maintenance Mode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic