Last active
June 20, 2017 07:18
-
-
Save filipslavik/c423205947eb2f5a5a1458da45ee5da2 to your computer and use it in GitHub Desktop.
Pressidium Cache Functions
This file contains hidden or 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 | |
public function purgeSite() { | |
if ( class_exists('Ninukis_Plugin') && Ninukis_Plugin::isCachingEnabled() ) { | |
return NinukisCaching::get_instance()->purgeAllCaches(); | |
} else { | |
return TRUE; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment