Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@2ndkauboy
Created September 4, 2015 15:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2ndkauboy/a2b17842718e38840f55 to your computer and use it in GitHub Desktop.
Save 2ndkauboy/a2b17842718e38840f55 to your computer and use it in GitHub Desktop.
Disable Cachify on home page
<?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