How to Exclude Home Page

[ad_1]

Hello @wooq123,

This is correct. Adding “/” in the “Exclude URLs from Caching” filter will disable the dynamic cache for the home page only.

Alternatively, you can add the following rule to the functions.php file of your active theme:

add_filter( 'sgo_exclude_urls_from_cache', 'sgo_add_excluded_urls_from_cache');
function sgo_add_excluded_urls_from_cache( $excluded_urls ) {
	// The part of the URL which needs to be excluded from cache.
	$excluded_urls[] = '/';

	return $excluded_urls;
}

It will have the same effect.

Best regards,
Kuzman Stoyanov

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer