Skip to content

Instantly share code, notes, and snippets.

@molotovbliss
Created February 20, 2014 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save molotovbliss/9122178 to your computer and use it in GitHub Desktop.
Save molotovbliss/9122178 to your computer and use it in GitHub Desktop.
enterprise.xml FPC with umask permissions & FPC Memcache example
<!-- example of two level cache setup with slow backend at files. -->
<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>
<!-- example of memcached as backend for FPC, slow backend DB -->
<full_page_cache>
<backend>memcached</backend>
<slow_backend>database</slow_backend>
<memcached>
<servers>
<server>
<host><![CDATA[127.0.0.1]]></host>
<port><![CDATA[11211]]></port>
<persistent><![CDATA[0]]></persistent>
<weight><![CDATA[2]]></weight>
<timeout><![CDATA[10]]></timeout>
<retry_interval><![CDATA[10]]></retry_interval>
<status><![CDATA[1]]></status>
</server>
</servers>
</memcached>
</full_page_cache>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment