File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ The Redis Object Cache plugin comes with vast set of configuration options. If y
61
61
| ` WP_REDIS_DISABLE_BANNERS ` | ` false ` | Disables promotional banners |
62
62
| ` WP_REDIS_DISABLE_DROPIN_CHECK ` | ` false ` | Disables the extended drop-in write test |
63
63
| ` WP_REDIS_DISABLE_DROPIN_AUTOUPDATE ` | ` false ` | Disables the drop-in auto-update |
64
+ | ` WP_REDIS_DISABLE_GROUP_FLUSH ` | ` false ` | Disables group flushing with Lua script and uses ` flushdb ` call instead |
64
65
| ` WP_REDIS_SSL_CONTEXT ` | ` [] ` | TLS connection options for ` tls ` or ` rediss ` scheme |
65
66
66
67
</details >
Original file line number Diff line number Diff line change @@ -1768,6 +1768,10 @@ public function flush() {
1768
1768
* @return bool Returns TRUE on success or FALSE on failure.
1769
1769
*/
1770
1770
public function flush_group ( $ group ) {
1771
+ if ( defined ( 'WP_REDIS_DISABLE_GROUP_FLUSH ' ) && WP_REDIS_DISABLE_GROUP_FLUSH ) {
1772
+ return $ this ->flush ();
1773
+ }
1774
+
1771
1775
$ san_group = $ this ->sanitize_key_part ( $ group );
1772
1776
1773
1777
if ( is_multisite () && ! $ this ->is_global_group ( $ san_group ) ) {
You can’t perform that action at this time.
0 commit comments