Purging Cache Results in Error #18
-
DescriptionWhen running the "Purge Cache" operation, an error will occur. Expected BehaviorThere should be no error if Redis is unavailable during a purge of cache. Actual BehaviorThe temporarily unavailable exceptions should be handled gracefully. Possible FixChange the exception to soft fail and report to error_log() Steps to Reproduce
Additional contextThis occurs with phpredis or relay. WordPress debug log
redis-server.log
Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 5 replies
-
Are you using "selective flushing"? |
Beta Was this translation helpful? Give feedback.
-
No, simply using the admin bar method. |
Beta Was this translation helpful? Give feedback.
-
@jordantrizz: What do you see under Settings > Redis? |
Beta Was this translation helpful? Give feedback.
-
Here you go!
|
Beta Was this translation helpful? Give feedback.
-
We need the full diagnostics dump. |
Beta Was this translation helpful? Give feedback.
-
Of course, sorry about that.
|
Beta Was this translation helpful? Give feedback.
-
You are using |
Beta Was this translation helpful? Give feedback.
-
Thanks Till; the database is massive and is the only one on the server for this Redis instance. So it's taking longer than 5 seconds to flush in some cases. From reading the README.md turning this off will use a slower LUA script that takes longer but won't affect Redis from responding to requests. Am I understanding this correctly? |
Beta Was this translation helpful? Give feedback.
You are using
WP_REDIS_SELECTIVE_FLUSH
which will take longer than 5s if your database is too large. Turn it off and use dedicated databases for each site.