Created
September 4, 2015 15:38
-
-
Save 2ndkauboy/a2b17842718e38840f55 to your computer and use it in GitHub Desktop.
Disable Cachify on home page
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 | |
/** | |
* Plugin Name: Disable Cachify on home page | |
* Description: This plugin simple disables the caching of the home page with Cachify (see https://wordpress.org/support/topic/exclude-home-page-from-being-cached) | |
* Author: Bernhard Kau | |
* Author URI: https://kau-boys.de | |
*/ | |
add_filter( | |
'cachify_skip_cache', | |
function() { | |
return is_home(); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment