Skip to main content
9 votes
Accepted

Redis Session Error: Successfully broke lock for ID sess_ebfc12b22fa8c8e1fb81dca122fcdda6 after 5.01422 seconds

Finally able to resolve this issue by changing below configurations for Redis: break_after_frontend changed from 5 to 30 max_concurrency => changed from 6 to 25 break_after_frontend was the main ...
Ahsan Horani's user avatar
7 votes
Accepted

Magento 2.2.5 to 2.2.6 upgrade error

We user varnish and redis cache on our server and had this same error. This is the procedure we followed for a successful upgrade. composer require magento/product-community-edition 2.2.6 --no-update ...
hpz937's user avatar
  • 116
6 votes

Session lock after using Cm_RedisSession

I appear to have mostly eliminated our problems. However, I never actually determined the exact cause. After upgrading the the latest version of Cm_RedisSession the logging indicated that 95% of the ...
Craig Harris's user avatar
6 votes

Configuration Redis on Magento2 errors

You have a typo at the end of your config, you're missing a comma ',' after 'compression_lib' => 'gzip'
Julien Lachal's user avatar
6 votes

What is minimum / recommended RAM size for Redis when used as Magento Cache?

18 month later I know the answer to this question based on own experience (and 20+ shops online). We use 2 Redis instances - for sessions and for cache (not full page cache). The reason for that is ...
KrzysDan's user avatar
  • 191
6 votes
Accepted

Magento 2 - Use Redis in Full Page Cache

I found the solution. For Backend cache on Redis use below sample command php bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=xxxxxxxxxxx --cache-backend-redis-db=0 ...
Shoaib Munir's user avatar
  • 9,522
6 votes

Magento 2 Header Sign In Sign Out Issue

Please try the following way using knockout js. you can add following code in your .phtml file, this will help you to resolve login issue while the cache is enabled <ul data-bind="scope: 'customer'...
Aasim Goriya's user avatar
  • 5,454
5 votes
Accepted

Redis timeout after a reindex

CAUSE: The line in question returning the exception in CRedis: https://github.com/tburry/credis/blob/master/Client.php#L991-L1002 NOTE the timeout causing because of the read meta data of the ...
B00MER's user avatar
  • 8,307
5 votes

Magento 2: Varnish + Redis for Full Page Cache at the same time?

I am using Varnish + Redis for Full Page Cache at the same time. In Magento 2.3.2, after clear both cache, visit some pages, then you will find the database in Redis for page cache will not have any ...
Key Shang's user avatar
  • 3,425
5 votes
Accepted

Magento 2 development: use or not Redis and Varnish?

Especially for Varnish it makes sense to use and test ist during development as you can run into big problems laster. I just read Alan Kent's (Magento Chief Architect) Blogpost today where he ...
Anna Völkl's user avatar
  • 17.4k
5 votes

Does Varnish cache not compatible with Redis?

The information is incorrect. All the software you mentioned can co-exist just fine on the same server. However, note that you don't really need Memcached. If your intention to use it was for storing ...
Danila Vershinin's user avatar
5 votes
Accepted

Magento 2 - Warm Cache Vs Cold Cache Concept (With Varnish & Redis)

After waiting on this question, I gathered some of the concept of warm and cold cache. By caching copies of image files, CSS, and HTML documents, the origin server does not have to generate these ...
Muhammad Hasham's user avatar
5 votes
Accepted

Magento 2 Redis Deprecated Functionality Causing Magento not to Start

Magento 2.3.3 is not compatible with PHP 7.4. Please downgrade your PHP version to 7.3.x to resolve this issue
KAndy's user avatar
  • 20.9k
4 votes
Accepted

RedisException: Read error on connection with Magento 2

we had a similar error after the upgrade to 2.1.6 when deploying static files. It seemed like throwing a random exception not be able to access the redis cache. It seems to be a problem with the ...
David Verholen's user avatar
4 votes
Accepted

Is sucuri and redis cache work together?

Yes, it is compatible with Sucuri and won't cause any issues. Sucuri is a CDN/WAF and you can set the caching level on your dashboard to "siteheaders" to force it to respect and use whatever caching ...
Daniel Cid's user avatar
4 votes

Magento 2 - How to check if Redis is working

Once you have configured redis in app/etc/env.php you can use below commands to check your redis configuration is working fine or not. Redis monitor command: redis-cli monitor Run redis-cli monitor ...
amitshree's user avatar
  • 7,056
3 votes

Magento 2: Varnish + Redis for Full Page Cache at the same time?

Yes, you should just remove 'page_cache' part from the code. In case you keep it, nothing so bad would happen. In my own testing, both continue working and what's most important, both Redis and ...
Danila Vershinin's user avatar
3 votes

Magento site is frequently getting CACHE issue and failing to serve CSS, site is getting broken page

For us this came down to being default Magento configuration cache. Simply disabling the first cache (configuration cache) in backend is a quick fix/workaround. We fixed with the following https://...
ladle3000's user avatar
  • 885
3 votes
Accepted

Why separate Redis instances for sessions and cache?

We set up separate instances of Redis so we can save to disk for sessions (to preserve sessions if crash), but not save to file for the Magento cache which can more easily rebuild after crash/reboot. ...
Rob Mangiafico's user avatar
3 votes
Accepted

After applying SUPEE-10415 Magento 1.9.3.3 404s but works fine if redis is removed from the local.xml

I'd give https://magento.stackexchange.com/a/203746/41117 a read. I had a similar issue when testing SUPEE-10415 and having Redis enabled, if you revert SUPEE-10415 and enable the Developer logs ...
Matt Antley's user avatar
  • 1,220
3 votes
Accepted

Magento + Redis: same config for two different instances - safe?

Redis configuration by itself won't have to change. The only thing that you need to change between your instances is the databases number in your /app/etc/env.php. You might have to increase the ...
werfu's user avatar
  • 200
3 votes
Accepted

Redis keys are keep increasing, EXPIRY is not set to keys

by using the options , we can set expiry date 'auto_expire_lifetime' => '54321', 'auto_expire_pattern' => '/^[a-zA-Z0-9._-]/', 'lifetimelimit' => '555'
manokarthick karthick's user avatar
3 votes
Accepted

How to upgrade Redis and ElasticSearch in Magento Cloud?

It depends if you're on Magento Starter or Magento Pro. Updating the services.yaml file will update your development environments, and production if you're using Magento Starter. That will let you ...
Crell's user avatar
  • 146
2 votes

Why Can't Magento Turn Off The Cache When Redis Fails

All you have to do just fix 3 issues/problems: Why redis fails? Heavy traffic, error, memory issues, networking? Timeouts and retries settings for connection? Your stack is up to date? Obviously you ...
MagenX's user avatar
  • 3,813
2 votes

"Redis 'server' not specified." in Cm_Cache_Backend_Redis code

FINALLY figured it out although it was pretty obvious. My lines, which I copied from the many many sample sites, are <host>127.0.0.1</host> If you look at it, it is self explanatory, ...
Kim K.'s user avatar
  • 73
2 votes
Accepted

How to flush/rebuild config cache on High-Performance sites?

We figured out that magento set a cache key prefix based on the path of the magento etc folder. We have a multiple server and each server has a release folder structure for deployment. That means the ...
Pawel's user avatar
  • 1,096
2 votes
Accepted

Ratchet Websocket with Magento

At the moment the best solution I have come up with is to run a separate cron that restarts my websocket daemon every 6 hours (so it will catch it before the timeout). If anyone has another solution ...
lilbumblebear's user avatar
2 votes
Accepted

Redis Local.xml file setup help

You have to add redis configuration just after <global> tag. And your local.xml should looks like below mentioned code. <config> <global> <cache> <...
Aman Alam's user avatar
  • 1,318
2 votes

Redis version requirement for Magento 2?

Both Redis 2.8 and 3.0 is supported by Magento 2 Difference: Redis 3.0 supports up to 64 different databases per instance of the service, while 2.8 allows for only a single database Reference: http:...
Franck Garnier's user avatar
2 votes

Magento 2: Installing with Redis by Default

I just have starter env file what i copy to 'app/etc/env.php' before running the installer command: <?php return array( 'session' => array( 'save' => 'redis', ...
Olli Tyynelä's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible