We recommend using Redis for caching in Magento 1, instead of the file cache.  For most updated Magento installs you need to only add this to your local.xml, very old versions may need to add the Redis module itself.

Add this code below the session save path (or anywhere within the config area).  Then clear the Magento cache in var/cache.

<!– This is a child node of config/global –>
<!– or absolute path to unix socket –>
<!– Specify unique string to enable persistent connections. –>
<!– Redis database number; protection against accidental data loss is improved by not sharing databases –>
<!– Specify if your Redis server requires authentication –>
<!– 0 for phpredis, 1 for standalone PHP –>
<!– Reduces errors due to random connection failures; a value of 1 will not retry after the first failure –>
<!– Set read timeout duration; phpredis does not currently support setting read timeouts –>
<!– Disabled by default –>
<!– 0-9 for compression level, recommended: 0 or 1 –>
<!– 0-9 for compression level, recommended: 0 or 1 –>
<!– Strings below this size will not be compressed –>
<!– Supports gzip, lzf, lz4 (as l4z) and snappy –>
<!– Set to 1 if Lua scripts should be used for some operations –>

Free Exclusive Magento Tips

Join our mailing list to receive speed, security, & performance hacks.

You have Successfully Subscribed!