Viewing 3 replies - 1 through 3 (of 3 total)
  • @zey_ser

    You’ll have to add the url to WP-Optmize > Cache > Advanced settings > “URLs to exclude from cache”

    Thanks,
    Harshad

    Hi @zey_ser,

    Currently, to exclude the front page from cache, you have to add a bit of custom code somewhere (E.g. in your theme’s functions.php):

    // Do not cache the front page
    add_filter('wpo_can_cache_page', function($can_cache_page) {
    	if (is_front_page()) {
    		return false;
    	}
    	return $can_cache_page;
    });
    

    Marc.

    Thread Starter zey_ser

    (@zey_ser)

    Thank you guys for your responses!
    @bornforphp I already check it and it doesn’t works for front page.
    @marcusig I will check it

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I add into blacklist home page from cache?’ is closed to new replies.