Last active
August 29, 2015 14:24
-
-
Save benjaminpick/94b487ce995454797143 to your computer and use it in GitHub Desktop.
Integrate Clear Cache for Me with Autoptimize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function yt_cache_enable($return) { | |
if (class_exists('autoptimizeCache')) | |
return true; | |
return $return; | |
} | |
add_filter('ccfm_supported_caching_exists', 'yt_cache_enable'); | |
function yt_cache_clear() { | |
if (class_exists('autoptimizeCache')) | |
autoptimizeCache::clearall(); | |
} | |
add_action('ccfm_clear_cache_for_me', 'yt_cache_clear'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment