Empty Cache from Admin Panel doesn’t purge Redis cache
-
Hello there!
I enabled Redis as a cache store with W3 Total Cache, which is working great! I’m hosting my Redis instance in a Docker container with a mapped volume to persist the data.
I’ve run into an issue when I want to purge the cache, page-cache for example, it doesn’t appear to clear the cache.
When I manually clear it and visit some pages, I see the new entries show up.
This is my db-config.php (placed in/wp-content/plugins/w3-total-cache/ini/db-config.php
):<?php define( 'W3TC_CONFIG_DATABASE', true ); // // redis config cache // define( 'W3TC_CONFIG_CACHE_ENGINE', 'redis'); define( 'W3TC_CONFIG_CACHE_REDIS_SERVERS', '127.0.0.1:6379'); // optional redis settings define( 'W3TC_CONFIG_CACHE_REDIS_PERSISTENT', true ); define( 'W3TC_CONFIG_CACHE_REDIS_DBID', 0 ); define( 'W3TC_CONFIG_CACHE_REDIS_PASSWORD', '' ); define( 'W3TC_CONFIG_CACHE_REDIS_TIMEOUT', 0 ); define( 'W3TC_CONFIG_CACHE_REDIS_RETRY_INTERVAL', 0 ); define( 'W3TC_CONFIG_CACHE_REDIS_READ_TIMEOUT', 0 );
- WordPress Current version: 6.0.3
- W3 Total Cache Version 2.3.0
This is all on my local machine, as we want to have a POC before we switch the production environment. I hope that I provided enough information, I can provide more when needed!
Thank you for your time.
- The topic ‘Empty Cache from Admin Panel doesn’t purge Redis cache’ is closed to new replies.