Topic on Talk:Redis

Jump to navigation Jump to search

Need to clear the cache after a DB restore

3
BertrandGorge (talkcontribs)

Hello, I've restored a MW DB, but the cache on Redis keeps showing data from prior the restoration. Is there a way to invalidate or clear all the redis cache ?

I've tried recreating the docker image for redis, without effet. Any idea welcome !

KHarlan (WMF) (talkcontribs)

Are you using a volume mount with redis to persist its data? If not, restarting redis should be enough. If you are using a volume mount, try `docker volume rm` for the redis data volume.

BertrandGorge (talkcontribs)

Hello Kosta, sorry I actually missed your answer (I should tune my notifications!). I added a script to purge all the keys for each wiki I have. You are right that I could simply recreate the container, it should do the job as well (but I might also drop the PHP sessions ongoing on the server)!

Reply to "Need to clear the cache after a DB restore"