File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
- - Fixed ` wp_cache_flush_group ` issue with Predis and replication connection
6
- - Fixed Redis version detection issue with Predis and replication connection
5
+ - Fixed issues with Predis and replication connections
6
+ - Fixed rare fatal error in ` show_error_and_die() ` (one more time)
7
7
8
8
## 2.5.2
9
9
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 @@ -1762,6 +1762,10 @@ public function flush() {
1762
1762
* @return bool Returns TRUE on success or FALSE on failure.
1763
1763
*/
1764
1764
public function flush_group ( $ group ) {
1765
+ if ( defined ( 'WP_REDIS_DISABLE_GROUP_FLUSH ' ) && WP_REDIS_DISABLE_GROUP_FLUSH ) {
1766
+ return $ this ->flush ();
1767
+ }
1768
+
1765
1769
$ san_group = $ this ->sanitize_key_part ( $ group );
1766
1770
1767
1771
if ( is_multisite () && ! $ this ->is_global_group ( $ san_group ) ) {
@@ -2965,6 +2969,8 @@ protected function show_error_and_die( Exception $exception ) {
2965
2969
add_filter ( 'pre_determine_locale ' , function () {
2966
2970
return defined ( 'WPLANG ' ) ? WPLANG : 'en_US ' ;
2967
2971
} );
2972
+
2973
+ add_filter ( 'pre_get_language_files_from_path ' , '__return_empty_array ' );
2968
2974
}
2969
2975
2970
2976
// Load custom Redis error template, if present.
You can’t perform that action at this time.
0 commit comments