Magento – Magento Full Page Cache Expires in 2 hours

full-page-cachemagento-enterprise

Is there any idea why Magento Enterprise Full Page Cache Expires in 2 hours ?

When does EE FPC expire?
I found this link , but i dont know what exact code i need to put in local.xml.
Is there any other settings that solves the Full page cache expire issue?

Thanks

Best Answer

It can depend on how your site/server was setup. That being said, in my app/etc/local.xml of a EE 1.13 site, using the built in Redis, I have the following:

<full_page_cache>
<backend>Mage_Cache_Backend_Redis</backend>
<backend_options>
    <server>127.0.0.1</server> <!-- or absolute path to unix socket -->
<port>6380</port>
<persistent></persistent> <!-- Specify a unique string like "cache-db0" to enable persistent connections. -->
<database>1</database> <!-- Separate database 1 to keep FPC separately -->
<password></password>
<force_standalone>0</force_standalone>  <!-- 0 for phpredis, 1 for standalone PHP -->
<connect_retries>1</connect_retries>    <!-- Reduces errors due to random connection failures -->
<lifetimelimit>57600</lifetimelimit>    <!-- 16 hours of lifetime for cache record -->
<compress_data>0</compress_data>        <!-- DISABLE compression for EE FPC since it already uses compression -->
</backend_options>
</full_page_cache>

Realistically, more information will need to be known because it will depend on what kind of server you have, who your host is (and whether it is a dedicated or shared box), what caching strategies are available on the server, etc.

Related Topic