Skip to content

Commit 75159d7

Browse files
authored
Merge branch 'develop' into replication-connection
2 parents 24036cd + 61003da commit 75159d7

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Unreleased
44

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)
77

88
## 2.5.2
99

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ The Redis Object Cache plugin comes with vast set of configuration options. If y
6161
| `WP_REDIS_DISABLE_BANNERS` | `false` | Disables promotional banners |
6262
| `WP_REDIS_DISABLE_DROPIN_CHECK` | `false` | Disables the extended drop-in write test |
6363
| `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 |
6465
| `WP_REDIS_SSL_CONTEXT` | `[]` | TLS connection options for `tls` or `rediss` scheme |
6566

6667
</details>

includes/object-cache.php

+6
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,10 @@ public function flush() {
17621762
* @return bool Returns TRUE on success or FALSE on failure.
17631763
*/
17641764
public function flush_group( $group ) {
1765+
if ( defined( 'WP_REDIS_DISABLE_GROUP_FLUSH' ) && WP_REDIS_DISABLE_GROUP_FLUSH ) {
1766+
return $this->flush();
1767+
}
1768+
17651769
$san_group = $this->sanitize_key_part( $group );
17661770

17671771
if ( is_multisite() && ! $this->is_global_group( $san_group ) ) {
@@ -2965,6 +2969,8 @@ protected function show_error_and_die( Exception $exception ) {
29652969
add_filter( 'pre_determine_locale', function () {
29662970
return defined( 'WPLANG' ) ? WPLANG : 'en_US';
29672971
} );
2972+
2973+
add_filter( 'pre_get_language_files_from_path', '__return_empty_array' );
29682974
}
29692975

29702976
// Load custom Redis error template, if present.

0 commit comments

Comments
 (0)