Skip to content

Commit 09fd4f7

Browse files
committed
ignore theme_json group
1 parent f25f587 commit 09fd4f7

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Call `redis_object_cache_error` action before `wp_die()`
1111
- Allow `WP_REDIS_PLUGIN_PATH` to be defined elsewhere
1212
- Added experimental flush timeout (defaults to `5` seconds)
13+
- Swap out ignored `themes` for `theme_json` cache group
1314

1415
## 2.4.4
1516

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ Answers to common questions and troubleshooting of common errors can be found in
2929

3030
The Redis Object Cache plugin comes with vast set of configuration options. If you're unsure how to use them read the [installation instructions](INSTALL.md).
3131

32-
| Configuration constant | Default | Description |
33-
| ------------------------------------ | ----------- | --------------------------------------------- |
34-
| `WP_REDIS_HOST` | `127.0.0.1` | The hostname of the Redis server |
35-
| `WP_REDIS_PORT` | `6379` | The port of the Redis server |
36-
| `WP_REDIS_PATH` | | The path to the unix socket of the Redis server |
37-
| `WP_REDIS_SCHEME` | `tcp` | The scheme used to connect: `tcp` or `unix` |
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 and not a "salt" |
40-
| `WP_REDIS_PASSWORD` | | The password of the Redis server, supports Redis ACLs arrays: `['user', 'password']` |
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` |
43-
| `WP_REDIS_TIMEOUT` | `1` | The connection timeout in seconds |
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 |
32+
| Configuration constant | Default | Description |
33+
| ------------------------------------ | ------------------------------------- | --------------------------------------------- |
34+
| `WP_REDIS_HOST` | `127.0.0.1` | The hostname of the Redis server |
35+
| `WP_REDIS_PORT` | `6379` | The port of the Redis server |
36+
| `WP_REDIS_PATH` | | The path to the unix socket of the Redis server |
37+
| `WP_REDIS_SCHEME` | `tcp` | The scheme used to connect: `tcp` or `unix` |
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 and not a "salt" |
40+
| `WP_REDIS_PASSWORD` | | The password of the Redis server, supports Redis ACLs arrays: `['user', 'password']` |
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` |
43+
| `WP_REDIS_TIMEOUT` | `1` | The connection timeout in seconds |
44+
| `WP_REDIS_READ_TIMEOUT` | `1` | The timeout in seconds when reading/writing |
45+
| `WP_REDIS_IGNORED_GROUPS` | `['counts', 'plugins', 'theme_json']` | Groups that should not be cached between requests in Redis |
4646

4747
<details>
4848
<summary>Advanced configuration options</summary>

includes/object-cache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ class WP_Object_Cache {
444444
public $ignored_groups = [
445445
'counts',
446446
'plugins',
447-
'themes',
447+
'theme_json',
448448
];
449449

450450
/**

0 commit comments

Comments
 (0)