Do not cache home page

Good day!

Is there an easy way to don’t have the homepage cached?

Greets,
Olaf

Add this to your page template:

<?php if ( is_home() || is_front_page() ) {
	define( 'DONOTCACHEPAGE', TRUE );
} ?>

If you have a specific home page template, you can add this to that without the conditional.

@ogessel You can also use Comet Cache → Plugin Options → URI Exclusion Patterns to exclude the Home Page from being cached. Simply add ^/$ to the exclusion patterns. See also: Watered-Down Regex Syntax

Hi Raam. Okay will try that some other time, I’ve now used the DONOTCACHE option. Thanks anyhow.