Posted almost 10 years ago. Visible to the public.

Config Redis Cache Definition

You need Cm_Cache_Backend_Redis Archive for this

Copy
<config> <global> <cache> <backend>Cm_Cache_Backend_Redis</backend> <backend_options> <server>localhost</server> <!-- or absolute path to unix socket for better performance --> <port>6379</port> <database>0</database> <force_standalone>0</force_standalone> <!-- 0 for phpredis, 1 for standalone PHP --> <automatic_cleaning_factor>0</automatic_cleaning_factor> <!-- Disabled by default --> <compress_data>1</compress_data> <!-- 0-9 for compression level, recommended: 0 or 1 --> <compress_tags>1</compress_tags> <!-- 0-9 for compression level, recommended: 0 or 1 --> <compress_threshold>20480</compress_threshold> <!-- Strings below this size will not be compressed --> <compression_lib>gzip</compression_lib> <!-- Supports gzip, lzf and snappy --> </backend_options> </cache> <full_page_cache> <backend>Cm_Cache_Backend_Redis</backend> <backend_options> <server>localhost</server> <!-- or absolute path to unix socket for better performance --> <port>6379</port> <database>1</database> <force_standalone>0</force_standalone> <!-- 0 for phpredis, 1 for standalone PHP --> <automatic_cleaning_factor>0</automatic_cleaning_factor> <!-- Disabled by default --> <compress_data>1</compress_data> <!-- 0-9 for compression level, recommended: 0 or 1 --> <compress_tags>1</compress_tags> <!-- 0-9 for compression level, recommended: 0 or 1 --> <compress_threshold>20480</compress_threshold> <!-- Strings below this size will not be compressed --> <compression_lib>gzip</compression_lib> <!-- Supports gzip, lzf and snappy --> </backend_options> </full_page_cache> </global> </config>

Owner of this card:

Avatar
Mike Whitby
Last edit:
about 8 years ago
Posted by Mike Whitby to Magento
This website uses short-lived cookies to improve usability.
Accept or learn more