Questions tagged [redis]

Denotes questions related to the usage of Redis for cache or session storage

34
votes
2answers
27k views

Magento Cache - confusion about Varnish, Redis, APC, Memcache

I'm try to improve Magento performances ( soon or later "MageDev" hit this point :) I did some research and I found a lot of good, but not homogeneous, guides. What I got is that: MemCache or ...
9
votes
3answers
16k views

Flushing REDIS Cache

Will either of the buttons FLUSH REDIS?
9
votes
3answers
7k views

Magento session storage: Redis vs. Memcached

I'm running a Magento EE 1.12.2 (equally in CE 1.7.2) where we have Redis for caching (Cm_Cache extension, Redis v 2.2.12), but we use Memcache for session storage. Redis is not supported out of the ...
9
votes
1answer
2k views

Session lock after using Cm_RedisSession

We switched to Redis as Session Storage with the default Cm_RedisSession Module from Magento 1.9.2.4. After the deployment a lot of Customers experienced very long page load times ( > 20-30 Sec.). For ...
9
votes
1answer
1k views

Magento Enterprise - Ongoing Redis Connection Errors

Enterprise 1.14.1.0, nginx, php-fpm, solr, redis (2 instances - one for fpc, and one for everything else) We're completely at our wit's end - we have tweaked every configuration setting that seems ...
8
votes
1answer
1k views

Very long time for Mage_Core_Model_Session_Abstract_Varien::start

We are using Magento EE 1.14.1.0 and are seeing very long times for Mage_Core_Model_Session_Abstract_Varien::start method. We tried using Memcached and Redis for session storage both with the same ...
8
votes
1answer
475 views

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

I'm working with Magento 1.9.0.1, and every now and again our Redis servers which host the Magento cache, (AWS ElastiCache) will go down. When this happens, Magento fatally errors until Redis is ...
8
votes
1answer
2k views

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

My question is to Magento Pros: Can I use Varnish and Redis for FPC (Full Page Cache) at the same time? My current setup looks like this: SSL termination > Varnish Full Page Cache > Apache &...
7
votes
2answers
3k views

Redis Session Slowness

I've enabled redis for session, have the latest extension and lib code from github, and I'm noticing some requests take around 30 seconds - and this is happening pretty frequently, and it's always ...
7
votes
2answers
2k views

Magento Redis setup on AWS

I have the following setup: Magento community 1.9.2 1 x Ec2 frontend, running Litespeed Webserver, php run through Litespeed's Php implementation - LSPHP, sort of like fast-cgi used in Nginx 1 x ...
7
votes
1answer
744 views

Why is cache being saved to the file system when Redis is configured as the cache backend?

I'm using a call to Mage::getSingleton('core/cache')->save() within a controller of mine and it's saving the cached value to the file system (var/cache/) even though Redis is configured as my cache ...
7
votes
1answer
1k views

Lesti FPC, Redis and Magento multistore. How to Clear cache for only one store?

I have successfully set up Lesti FPC with latest Redis, including session and backend cache, on a Magento 1.9.2 with a few stores. Everything is working really great. My question is, if possible, how ...
7
votes
2answers
474 views

Full Page Cache in our Cluster users are able to see other users accounts

When I turn on Full Page Cache in our Cluster users are able to see other users accounts. We are using REDIS for Objects and FPC now (Separate instances) I switch sessions to the database We have 4 ...
6
votes
1answer
1k views

Intermittent 503 errors with Redis enabled

I recently switched a store cache and session backend to Redis 3.0.3. I used the Cm_Cache_Backend_Redis and Cm_RedisSession extensions and the example configs provided. It works as expected and Redis ...
6
votes
1answer
5k views

Switching back to MySQL sessions after using Redis sessions

I'm having an issue with my site. We were using Redis sessions, but after some issues with latency we've decided to switch back to MySQL sessions. The app/etc/local.xml file used to look something ...
5
votes
7answers
3k views

Magento 2.2.5 to 2.2.6 upgrade error

When trying to upgrade from Magento 2.2.5 to 2.2.6 I've noticed some strange behavior blocking the upgrade. The first commands I did without problem are: composer require magento/product-community-...
5
votes
2answers
448 views

How to access 'customer/session' with redis_session in custom module?

I am using the redis_session for storing the back end cache and session with different db id's. Now, the below code returns empty when using it in the custom module. Mage::getSingleton('core/session'...
5
votes
1answer
858 views

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

We're running a Magento site, EE 1.14.1 and are having seemingly random problems with the site going down because all of the assets fail to load and the site reverts from our theme to the default ...
5
votes
1answer
408 views

Proper use of <slow_backend> for local.xml implementation

I've scoured the web and this SE section, what I find is either not clear or completely outdated. I keep coming across articles about a 2 level caching system, a fast backend and a slow backend. ...
5
votes
1answer
1k views

Magento Enterprise 1.13.1 REDIS cluster with failover automation

One of the answers above mentions the use of: Cache hosts (by parhamr) There are two hosts running Redis in a master-slave configuration with automated failover. Three Redis instances are used ...
5
votes
2answers
4k views

Magento writing to tmp/magento directory

The site started throwing exceptions on both the front & backend. After disabling redis, memcached & the full page cache and reverting to using files for sessions, the site seems to function ...
4
votes
3answers
16k views

Move magento site with redis to server without redis how to disable redis

I want to copy a Magento site with Redis cache to another server without Redis. Is this possible with just the steps as described here? Probably that's not enough because it is looking for Redis ...
4
votes
1answer
10k views

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

I want to know the concept difference between warm cache and cold cache. How do we use both these techniques effectively with varnish and Redis cache. Any help, knowledge and experience sharing ...
4
votes
4answers
1k views

Magento 2: Installing with Redis by Default

Magento 2's CLI has a setup:install command that will let you generate an initial configuration php bin/magento setup:install --admin-email astorm@example.com --admin-firstname Alan --admin-lastname ...
4
votes
1answer
1k views

Redis timeout after a reindex

First, a little background of the setup. We are using Magento EE 1.14.2.4 and have cache/sessions stored in a Redis cluster (a separate instance for cache, FPC, and session data). The client has an ...
4
votes
1answer
5k views

Magento Redis Session sudden “'CredisException' with message 'read error on > connection'”

Hi we are seeing some errors in our logs like this. And users are continuously being logged out of the backend. The logging however is nog 1-1 with being logged out. Sometimes we see this in log, ...
4
votes
2answers
3k views

Redis Cm_Cache_Backend_Redis not adding keys

I'm trying to use CM_Cache_Backend_Redis to cache database calls and sessions. I have the following configuration inside near the bottom of my app/etc/local.xml file: <cache> <backend&...
4
votes
2answers
425 views

Why separate Redis instances for sessions and cache?

Official Magento guidance is to use separate Redis instances for cache and session storage. What is the reasoning behind this? I've seen some old references mentioning that it is for ease of cache ...
4
votes
3answers
1k views

Magento 2 development: use or not Redis and Varnish?

I have several issues using Varnish and Redis, so I disabled to develop. In the Alan Kent's (Magento Chief Architect) post say to use the two to develop, I'm using this image Docker below with Redis ...
4
votes
3answers
690 views

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

As the subject says, after applying the SUPEE-10415 patch, all seems fine until "redis-cli flushall" then we get the annoying "404 error: Page not found." on everything. After a process of elimination,...
4
votes
3answers
3k views

Configuration Redis on Magento2 errors

I already installed and tested Redis working properly on my server. But when I added Redis required settings cache in my app/etc/env.php then my Magento 2 displays blank page. I also tried to clean ...
4
votes
1answer
204 views

only clear part of full page cache

i'm using memcache and redis. is it possible to clear only a certain page or group of pages using these? Howso? For example i'd like to be able to only clear the homepage instead of the entire FPC. ...
4
votes
1answer
472 views

Saving a product on Admin clears the whole FPC in Magento EE 1.14.1.0

I knew this was a problem on the previous versions on Magento EE (e.g. 1.12), but still, Magento EE 1.4.1.0 clears the whole Full Page Cache when saving any product (even a disabled one) from Admin? ...
4
votes
1answer
771 views

Redis version requirement for Magento 2?

I see on M2 requirements page that it says: Magento can utilize the following technologies: Redis version 3.0 for page caching and session storage (the latter supported by Magento version 2.0.6 and ...
4
votes
2answers
1k views

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

If we flush the config cache, the cache is build up by the customer in the frontend. The problem is that a lot of customer build the same cache and it took a lot of server resources. Is there a smart ...
4
votes
2answers
183 views

Why is site faster without Full Page Cache on?

We recently had to do a code deployment to a server cluster. We turn off cache before the deployment. We forgot to turn the cache back on but then after looking at NewRelic we noticed the response ...
3
votes
1answer
5k views

Check if user logged on to admin or not, stops working after installation of Redis Session Cache

I have this code, found on the Internet, to check if a user is logged on to the admin pages or not. I recently installed Redis Session Cache successfully, and now these lines of code doesn't work ...
3
votes
1answer
652 views

Problems flushing Magento Redis Cache on an installation with a separate backend server

My problem is that I do not think I am able to refresh the magento redis cache from the admin page. I realize that the problem could come from many sources, but my gut tells me it has something to do ...
3
votes
1answer
1k views

How to prevent Redis cache race conditions

We have a multi server Magento installation using Redis as cache backend. Every time I flush Redis (FLUSHDB or FLUSHALL) under traffic Redis runs into race conditions. Calling redis-cli -h xxx....
3
votes
1answer
149 views

Magento 2.3.1 customer grid sorting issue

I am using magento 2.3.1. I am having this strange issue only in admin>customer grid No matter which column I choose to sort the results are always the same. It happens only in this grid. What I ...
3
votes
1answer
1k views

FPC no longer hooked up to redis? [duplicate]

I recently received the following ticket info regarding some caching issues on our magento installation, and have run into some stumbling blocks in diagnosing (thus obviously fixing, as well) the ...
3
votes
2answers
98 views

Connect Redis to Docker-compose

I've setup my docker to connect with redis. But upon running the application i'm getting this error Fatal error: Uncaught CredisException: Connection to Redis redis:0 failed after 2 failures. Last ...
3
votes
1answer
60 views

Admin cache only showing refresh in dropdown [closed]

I've disabled and enabled and cleared and flushed cache through php bin/magento cahce:disable php bin/magento cahce:enable php bin/magento cahce:clean php bin/magento cahce:flush Recently i just ...
3
votes
0answers
86 views

How to maintain the customer's active quote after Magento 2 database migration?

As per our client requirement, after our Magento1 to Magento2 data migration they expecting that all the active quote customers should not loose their cart items when they back. To be more clear, A ...
3
votes
1answer
727 views

After upgrade 2.1.2 to 2.1.7, Redis cache ends up in bad state intermittently, then all requests return 503

This site was stable on Magento CE 2.1.2. After upgrading to 2.1.7, we have encountered some issues in production. There are 2 recurring errors with an interval of hours to days between occurrences. ...
3
votes
0answers
558 views

Why doesn't flush cache storage flush Full page cache db with Redis [closed]

I just noticed when trying to flush cache storage through the admin in Magento Enterprise 1.13.1 for one of our clients, it isn't flushing the database set in the Redis configuration for FPC. I notice ...
2
votes
4answers
2k views

Cm_Cache_Backend_Redis - Suspected config cache invalidation

I have a cluster with 8 webserver nodes and a redis cache instance running on a separate server. During high load, the throughput on the redis server goes through the roof, approximately 35-40 MB/s (...
2
votes
1answer
61 views

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

Can I use the exact same config for redis for two different magento instances or do they access / write to the same cache? F.e. I have a "production" and "staging" instance of magento which have their ...
2
votes
2answers
844 views

Using Read Replicas with Redis

Does Magento Enterprise have any means of using read replicas when using Redis as a back-end cache? If not, any tips on how this could be added? Magento uses Credis_Client by Colin Mollenhour, who ...
2
votes
3answers
308 views

Slow Magento 2.2.5

Good evening, my site is https://www.emporiobit.com.br it is not yet in production. I use magento 2.2.5 with varnish and redis I configured 4G for Varnish and 4G for php memory_limit, my VPS has 12gb ...