Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Exclude page from cache but keep optimizations.
add_action( 'wp_rocket_loaded', function() {
// Exclude post type with ID = 1.
if ( is_single(1) ) {
add_filter( 'do_rocket_generate_caching_files', '__return_false' );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment