You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: FAQ.md
+8
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,14 @@ This can happen when Redis Server runs out of memory and no `maxmemory-policy` w
138
138
Alternatively, you can set the `WP_REDIS_MAXTTL` constant to something relatively low (like `3600` seconds) and flush the cache.
139
139
</details>
140
140
141
+
<details>
142
+
<summary><code>Flushing the cache causes timeout</code></summary>
143
+
144
+
This can happen when the dataset in Redis Server is quite large. Consider increasing `WP_REDIS_READ_TIMEOUT` and `WP_REDIS_FLUSH_TIMEOUT` to 5-10 seconds.
145
+
146
+
Alternatively, starting with Redis 6.2, setting the `lazyfree-lazy-user-flush` in the `redis.conf` configuration directive to `yes` changes the default flush mode to be asynchronous.
Copy file name to clipboardexpand all lines: README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -36,13 +36,12 @@ The Redis Object Cache plugin comes with vast set of configuration options. If y
36
36
|`WP_REDIS_PATH`|| The path to the unix socket of the Redis server |
37
37
|`WP_REDIS_SCHEME`|`tcp`| The scheme used to connect: `tcp` or `unix`|
38
38
|`WP_REDIS_DATABASE`|`0`| The database used by the cache: `0-15`|
39
-
|`WP_REDIS_PREFIX`|| The prefix used for all cache keys to avoid data collisions, replaces `WP_CACHE_KEY_SALT`. Should be human readable, not a "salt".|
40
-
|`WP_REDIS_PASSWORD`|| The password of the Redis server. Supports Redis ACLs arrays: `['user', 'password']`|
39
+
|`WP_REDIS_PREFIX`|| The prefix used for all cache keys to avoid data collisions (replaces `WP_CACHE_KEY_SALT`), should be human readable and not a "salt" |
40
+
|`WP_REDIS_PASSWORD`|| The password of the Redis server, supports Redis ACLs arrays: `['user', 'password']`|
41
41
|`WP_REDIS_MAXTTL`|`0`| The maximum time-to-live of cache keys |
42
-
|`WP_REDIS_CLIENT`|| The client used to communicate with Redis. Defaults to `phpredis` when installed, otherwise `predis`. Supports`phpredis`, `predis`, `relay`|
42
+
|`WP_REDIS_CLIENT`|| The client used to communicate with Redis (defaults to `phpredis` when installed, otherwise `predis`), supports`phpredis`, `predis`, `relay`|
43
43
|`WP_REDIS_TIMEOUT`|`1`| The connection timeout in seconds |
44
44
|`WP_REDIS_READ_TIMEOUT`|`1`| The timeout in seconds when reading/writing |
45
-
|`WP_REDIS_FLUSH_TIMEOUT`|`5`| The timeout in seconds when flushing |
46
45
|`WP_REDIS_IGNORED_GROUPS`|`[]`| Groups that should not be cached between requests in Redis |
47
46
48
47
<details>
@@ -51,7 +50,8 @@ The Redis Object Cache plugin comes with vast set of configuration options. If y
0 commit comments