• Resolved Ov3rfly

    (@ov3rfly)


    Suggestion for a future version, add support for Cache Enabler plugin.

    That plugin is recommended for use with Autoptimize plugin and has a mechanism in place to clear its cache after Autoptimize cache is cleared, so Clear Cache for Me currently triggers the clear via Autoptimize if both are used.

    For stand alone situations without Autoptimize, support could be added after Autoptimize check similar to this:

    function ccfm_get_caching_system_used() {
        $cache_system_key = '';
    ...
        else if ( class_exists( 'autoptimizeCache' ) ) {
            $cache_system_key = 'autooptimize';
        }
        else if ( class_exists( 'Cache_Enabler' ) ) {
            $cache_system_key = 'cacheenabler';
        }
        return $cache_system_key;
    }
    
    function ccfm_get_cache_system_name( $cache_system_key = '' ) {
    ...
            case 'autooptimize':
                $cache_name = 'Autoptimize';
                break;
            case 'cacheenabler':
                $cache_name = 'Cache Enabler';
                break;
    ...
        return $cache_name;
    }
    
    function ccfm_clear_cache_for_me( $source ) {
    ...
        else if ( class_exists( 'autoptimizeCache' ) ) {
            autoptimizeCache::clearall();
        }
        else if ( class_exists( 'Cache_Enabler' ) ) {
            Cache_Enabler::clear_total_cache();
        }
    ...
    }

    Thanks for great plugin.

Viewing 1 replies (of 1 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    Sorry, I thought I replied to this one earlier.

    Thanks for letting me know! This has been added to v1.5.

Viewing 1 replies (of 1 total)
  • The topic ‘Suggestion: Cache Enabler support’ is closed to new replies.