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 ...
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
...
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 ...
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'
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
...
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'...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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>
<...
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 ...
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 ...
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 ...
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 ...
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://...
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-...
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.
...
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 ...
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 ...
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 ...
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'
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 ...
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 ...
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>...
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 ...
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>
<...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
redis × 219cache × 76
magento2 × 75
magento-1.9 × 45
full-page-cache × 40
cm-redissession × 25
varnish × 22
session × 15
magento-2.1 × 11
magento-enterprise × 10
aws × 8
memcached × 8
database × 7
performance × 6
docker × 6
error × 5
nginx × 5
magento-1.7 × 4
magento-1.8 × 4
elasticsearch × 4
magento-1.14 × 4
block-cache × 4
magento2.4.3 × 4
magento2.3 × 3
php × 3