Please use an other name for this.
I’ve deleted the file fronm Performance Labs. I see no problems with that. Redis now works.
]]>Can you fix this bug?
]]>The problem is that despite having configured the Redis client and having it activated, it doesn’t work for me at the W3 Total Cache level.
The moment I activate it, get errors such below
[Fri Jan 31 12:23:59.897677 2025] [proxy_fcgi:error] [pid 13849:tid 14305] [client 72.14.201.246:0] AH01071: Got error 'PHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refusedPHP message: Connection refused', referer: https://www.google.com/
In wp-admin.php
define( 'WP_REDIS_SCHEME', 'unix' );
define( 'WP_REDIS_PATH', '/home/USER/.redis/redis.sock' );
define( 'WP_CACHE_KEY_SALT', 'domain.tld');
define( 'WP_REDIS_DATABASE', '0');
This configuration work fine if activate Redis Object Cache. Conect with socket, and works.
I have tried to search for solutions for w3 but I don’t see anything.
I recently tried installing the WP Redis Cache plugin along with the redis-server on my ubuntu server and initially things seem to be working fine. Additionally, I also indexed a few things on the databse using the following commands to speed up the product retrievals for my front end (I only use Woocommerce in Headless mode as the backend):CREATE INDEX idx_post_type_status ON wp_posts (post_type, post_status);
CREATE INDEX idx_product_search ON wp_posts (post_type, post_status, post_title(191), post_content(191));
CREATE INDEX idx_order_item_order_id ON wp_woocommerce_order_items (order_id);
CREATE INDEX idx_order_itemmeta ON wp_woocommerce_order_itemmeta (order_item_id, meta_key);
CREATE INDEX idx_product_meta_key ON wp_postmeta (post_id, meta_key);
CREATE INDEX idx_product_meta_value ON wp_postmeta (meta_key, meta_value(191));
However, I noticed that the server was timing out quite a bit on api requests and also the admin dashboard wouldn’t load.
So using the SQL command: UPDATE wp_options SET option_value = '' WHERE option_name = 'active_plugins';
, I deactivated all plugins and then the admin dashboard started loading fine.
I went ahead and started activating all plugins one by one and when I tried activating WP-Stateless, the admin dashboard hanged and the server became inaccessible.
So to be sure, I tried the same deactivation + reactivation several times and the server was hanging only when I tried to activate WP-Stateless plugin.
I’ve also deleted the Wp Redis Cache plugin and deleted the object-cache.php file as well as the cache folder from the uploads from the server. Still, I’m not able to get WP-stateless to activate.
Can you please help me out? It’s a live site and without WP Stateless, the frontend images simply don’t seem to work.
]]>I have tried flushing the cache, disabling the plugin, checking that the service is still running on our VPS, I have used the ping command and get the pong response and I have restarted the server but I am still getting the above error when clicking All Products. All other areas of Woocommerce work i.e. Orders, Categories.
Here are the diagnostics:
Status: Connected
Client: PhpRedis (v6.1.0)
Drop-in: Valid
Disabled: No
Ping: 1
Errors: []
PhpRedis: 6.1.0
Relay: Not loaded
Predis: 2.1.2
Credis: Not loaded
PHP Version: 8.3.15
Plugin Version: 2.5.4
Redis Version: 6.0.16
Multisite: No
Metrics: Enabled
Metrics recorded: 461
Filesystem: Writable
Global Prefix: "wp_"
Blog Prefix: "wp_"
Timeout: 1
Read Timeout: 1
Retry Interval:
WP_REDIS_PLUGIN_PATH: "/var/www/vhosts/expressweldcare.co.uk/httpdocs/wp-content/plugins/redis-cache"
Global Groups: [
"blog-details",
"blog-id-cache",
"blog-lookup",
"global-posts",
"networks",
"rss",
"sites",
"site-details",
"site-lookup",
"site-options",
"site-transient",
"users",
"useremail",
"userlogins",
"usermeta",
"user_meta",
"userslugs",
"redis-cache",
"blog_meta",
"image_editor",
"network-queries",
"site-queries",
"theme_files",
"translation_files",
"user-queries"
]
Ignored Groups: [
"counts",
"plugins",
"theme_json",
"themes"
]
Unflushable Groups: []
Groups Types: {
"blog-details": "global",
"blog-id-cache": "global",
"blog-lookup": "global",
"global-posts": "global",
"networks": "global",
"rss": "global",
"sites": "global",
"site-details": "global",
"site-lookup": "global",
"site-options": "global",
"site-transient": "global",
"users": "global",
"useremail": "global",
"userlogins": "global",
"usermeta": "global",
"user_meta": "global",
"userslugs": "global",
"redis-cache": "global",
"blog_meta": "global",
"image_editor": "global",
"network-queries": "global",
"site-queries": "global",
"theme_files": "global",
"translation_files": "global",
"user-queries": "global",
"counts": "ignored",
"plugins": "ignored",
"theme_json": "ignored",
"themes": "ignored"
}
Drop-ins: [
"advanced-cache.php v by ",
"maintenance.php v by ",
"Redis Object Cache Drop-In v2.5.4 by Till Krüss"
]
Please help.
]]>in php logs:
…
NOTICE: PHP message: Connection refused
NOTICE: PHP message: Connection refused
NOTICE: PHP message: Connection refused
NOTICE: PHP message: Connection refused
…
As far as I understand, regardless of the settings
;php.ini
[redis]
redis.host = “redis”
redis.port = 6379
and
// wp-config.php
define('W3TC_CONFIG_CACHE_ENGINE', 'redis');
define('W3TC_CONFIG_CACHE_REDIS_SERVERS', 'redis:6379');
The plugin still tries to check redis on localhost
Maybe the memcach check also generates this log
Is there any way to remove the redis/memcache check attempt when the frontend page is loaded, or any other admin page (except your plugin)?
It is possible to optimize and not check for every php request?
But that’s ok, why is it trying to knock on the localhost next? Is it possible to fix it?
Maybe I didn’t specify some other variable?
The main problem for me is flooding in the logs, I want to get rid of it without moving redis to localhost, in a container with wordpress
]]>I checked with my hosting provider and they confirmed that Redis is enabled on the server and the port is correct. How can this be enabled?
Thanks – Danny
]]>I’m currently using Redis + WP Rocket, but I’m facing an issue where I have to clear the entire Redis cache each time I add a new post for it to appear.
I’d really like to only clear the cache for a specific URL where my grid listing is displayed. I noticed that W3 Total Cache has Redis support and can clear just one post, identifying the calls related to that post to clear only what’s necessary.
Would anyone know if there’s a way to achieve this with WP Rocket, or if switching to W3 Total Cache might help here?
]]>