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
@@ -30,6 +31,22 @@ Unfortunately many plugin authors don't bother testing their plugins with a pers
30
31
31
32
This plugin is **not the issue**, it's just providing WordPress with `wp_cache_*()` functions for persistent caching.
32
33
34
+
## How can I ignore a cache group?
35
+
36
+
Some plugins don’t play nicely with a persistent object cache in WordPress and either cause stale cache data, or straight up break functionality. In such scenarios you might be able to exclude the faulty plugin's cache groups:
37
+
38
+
```php
39
+
define( 'WP_REDIS_IGNORED_GROUPS', [
40
+
'wpseo', // just an example
41
+
] );
42
+
```
43
+
44
+
## How can I exclude a page from the cache?
45
+
46
+
Object caching caches only **objects**, not **pages**. You cannot exclude a page from using the object cache, because object caching is not URL-centric. You also cannot exclude the WordPress admin dashboard from using object caching, because then you risk the cache going stale and even loosing data.
47
+
48
+
If you’re experiencing a compatibility issue with another plugin in combination with Redis Object Cache, please contact the support team of the plugin regarding the issue and ask them to ensure it's compatible with persistent object cache backends, like Redis.
49
+
33
50
## Status: <code>Not connected</code>
34
51
35
52
This means that either [Redis Server](https://redis.io) is not installed and running, or the plugin is not configured correctly.
@@ -57,12 +74,6 @@ If you moved all constants above those lines and the plugin still shows `Not Con
57
74
## <code>connection timed out</code> and <code>read error on connection</code>
58
75
If the error occurs rarely, ignore it, Redis Server is having a hiccup. If it persists, read the answer to "Status: <code>Not connected</code>".
59
76
60
-
## How can I exclude a page from the cache?
61
-
62
-
Object caching caches only **objects**, not **pages**. You cannot exclude a page from using the object cache, because object caching is not URL-centric. You also cannot exclude the WordPress admin dashboard from using object caching, because then you risk the cache going stale and even loosing data.
63
-
64
-
If you’re experiencing a compatibility issue with another plugin in combination with Redis Object Cache, please contact the support team of the plugin regarding the issue and ask them to ensure it's compatible with persistent object cache backends, like Redis.
65
-
66
77
## My site is getting redirected another domain
67
78
68
79
That happens when the same `WP_REDIS_DATABASE` index is used for multiple WordPress installations. You **MUST** set a separate `WP_REDIS_DATABASE` and `WP_REDIS_PREFIX` for each domain to avoid data collision.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ The Redis Object Cache plugin comes with vast set of configuration options. If y
42
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_IGNORED_GROUPS`|`[]`| Groups that should not be cached between requests in Redis |
45
+
|`WP_REDIS_IGNORED_GROUPS`|`[]`| Groups that should not be cached between requests in Redis ([read more](FAQ.md#how-can-i-ignore-a-cache-group)) |
0 commit comments