Does anyone know how to tell what the lifetime is in on the enterprise edition full page cache
? I've poked around the code base a good bit but I don't see anything that indicates a set lifetime.
Thanks!
Does anyone know how to tell what the lifetime is in on the enterprise edition full page cache
? I've poked around the code base a good bit but I don't see anything that indicates a set lifetime.
Thanks!
I think it will use the default from Mage_Core_Model_Cache::DEFAULT_LIFETIME which is 7200 seconds.
Take a look at the Enterprise_PageCache_Model_Cache::getCacheInstance()
method. It will either create its own instance of a core/cache
model or use the application's if there are no specific options set.
In the <full_page_cache>
tag in your ./app/etc/local.xml
just define
<lifetimelimit>86400</lifetimelimit>
The lifetime is defined in seconds. You need to strike a balance between content freshness, performance and the amount of storage space you actually have available.
The default is 7200 seconds.
<full_page_cache><backend_options> HERE </backend_options><full_page_cache>
– Jeroen Vermeulen - MageHost
Jan 31 '18 at 12:37
This is an old thread, but I've been doing a lot of work with FPC recently and I wanted to clarify because the above is not accurate. Magento EE FPC out of box does not support expiration.
Enterprise_PageCache_Model_Processor::processRequestResponse()
does this...
$cacheInstance->save($content, $cacheId, $this->getRequestTags());
Since lifetime is not passed here it defaults to null
. See Mage_Core_Model_Cache::save()
signature...
public function save($data, $id, $tags = array(), $lifeTime = null)
Also of note https://github.com/colinmollenhour/Cm_Cache_Backend_Redis/pull/77