Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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