The full page key can be enabled on the admin cache management page. To save the full page cache in memcache, you will need the following configuration. This XML file can be found in app/etc/local.xml.additional and must be added to regular local.xml .
Keep in mind that you want your cache and FPC sessions to be stored in a different memcached cache. Otherwise, clearing memcache will also log out all your clients. Flushing memcache can be done by the administrator using Flush Cache Storage .
Obviously, this is only the side of Magento, you also need to configure and run memcache on your server.
<config> <global> <session_save><![CDATA[]]></session_save> <session_save_path><![CDATA[]]></session_save_path> <session_cache_limiter><![CDATA[]]></session_cache_limiter> <cache> <backend></backend> <slow_backend></slow_backend> <slow_backend_store_data></slow_backend_store_data> <auto_refresh_fast_cache></auto_refresh_fast_cache> <memcached> <servers> <server> <host><![CDATA[]]></host> <port><![CDATA[]]></port> <persistent><![CDATA[]]></persistent> <weight><![CDATA[]]></weight> <timeout><![CDATA[]]></timeout> <retry_interval><![CDATA[]]></retry_interval> <status><![CDATA[]]></status> </server> </servers> <compression><![CDATA[0]]></compression> <cache_dir><![CDATA[]]></cache_dir> <hashed_directory_level><![CDATA[]]></hashed_directory_level> <hashed_directory_umask><![CDATA[]]></hashed_directory_umask> <file_name_prefix><![CDATA[]]></file_name_prefix> </memcached> </cache> <full_page_cache> <backend_options> <cache_dir>full_page_cache</cache_dir> </backend_options> <slow_backend_options> <hashed_directory_level>1</hashed_directory_level> <hashed_directory_umask>0777</hashed_directory_umask> <file_name_prefix>fpc</file_name_prefix> <cache_dir><![CDATA[full_page_cache]]></cache_dir> </slow_backend_options> </full_page_cache> <remote_addr_headers> <header1>HTTP_X_REAL_IP</header1> <header2>HTTP_X_FORWARDED_FOR</header2> </remote_addr_headers> </global>
source share