redis_cache
This is an old revision of the document!
Flushing Redis Cache
To flush redis cache without restarting the service, follow this guide
First find out what port + IP address redis is running on:
1 |
netstat -plnt | grep redis |
1 |
tcp 0 0 10.x.x.26:6379 0.0.0.0:* LISTEN 5972 /redis-server 1 |
You will first need to get the password from the local.xml file in the document root.
The format is normally path/to/document/root/app/etc/local.xml
1 |
grep -i password path /to/document/root/app/etc/local .xml |
1 2 |
<password><![CDATA[dWNxs4uAvggLyv8j]]>< /password > <password>Wk8Yhr7P22fScw688WR7zcnn< /password > |
Now we need to telnet using the information from the netstat grep
1 |
telnet 10.x.x.26 6379 |
1 |
INFO |
1 |
-NOAUTH Authentication required. |
1 |
AUTH reallylongpassword |
1 |
+OK |
1 |
FLUSHALL |
1 |
RUN INFO |
redis_cache.1453278504.txt.gz · Last modified: 2024/05/23 07:26 (external edit)