is it possible to turn off the cache for the homepage? and if so how do i reference it in the settings?

Comments

Brian.Harris’s picture

follow up. I have my homepage set to /node/ - when calling request_uri(); on the homepage returns a blank variable.

Crell’s picture

Status: Active » Closed (fixed)

The front page can be excluded with "/" as the path. Later versions may have a cleaner mechanism, but this works for the time being.

Brian.Harris’s picture

worked great. thanks!

ivrh’s picture

confirming:
/
works for homepage

sparkguitar05’s picture

Version: 4.7.x-1.x-dev » 5.x-1.0
Component: Documentation » Miscellaneous
Status: Closed (fixed) » Active

When I enter / for the path, it disables the cache for the entire site, making the module useless. Is there a way to disable the cache for ONLY the front page?

Crell’s picture

Status: Active » Closed (fixed)

Please do not re-open a closed issue. Also, version 1.0 is no longer supported. Try the 2.x version, which includes a far more robust exclusion method that should be faster, too.