Hot answers tagged

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
  • 106
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
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,344
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,394
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,385
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,297
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 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.3k
5 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
  • 181
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.8k
4 votes
Accepted

Redis Session DB Shows Zero 0 Keys for sessions?

do you have these files ? app/etc/modules/Cm_RedisSession.xml app/code/community/Cm/RedisSession is it enabled? app/etc/modules/Cm_RedisSession.xml <config> <modules> <...
MagenX's user avatar
  • 3,780
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
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
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
Accepted

Problems with Unstyled Page, Bad Paths, loss of layout configuration after application of SUPEE-6788 Patch

Edit #2: I decided to attach XDebug to our live server during one of the outages to debug the state of the config, and discovered that the store config had been cached incorrectly - specifically, the ...
Persata's user avatar
  • 151
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

How to prevent Redis cache race conditions

The 'cache is corrupt' there is to short time to rebuild the core config cache, it's to big. More information or explanation and the credits; https://github.com/AmpersandHQ/magento-ce-ee-config-...
Evrijn's user avatar
  • 320
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,190
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

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
  • 6,896
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,780
2 votes

Magento redis "read error on connection"

The solution (atleast for us) was to add a read_timeout config option in app/etc/local.xml where you have configured Redis cache for Magento. <cache> <backend>...
Denish Vachhani's user avatar
2 votes

Very long time for Mage_Core_Model_Session_Abstract_Varien::start

There is multiple issues for this case. First Magento recommend Memcache for M2, I suppose the same for M1 : http://devdocs.magento.com/guides/v2.0/config-guide/memcache/memcache.html We had ...
bchatard's user avatar
  • 468
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

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