From 7d6b4d66c83d4bd6d4b1db4ae553cdda544ab3ad Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 29 Dec 2022 17:10:56 +1100 Subject: [PATCH] Update redis-object-cache.php delete is an alias of del that will be removed in future releases: https://github.com/phpredis/phpredis/blob/148bf373b7a0d276f6f6fd1ec1e6b9407fba6497/README.markdown#del-delete-unlink --- inc/dropins/redis-object-cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/dropins/redis-object-cache.php b/inc/dropins/redis-object-cache.php index 4532e08..bc51bd0 100644 --- a/inc/dropins/redis-object-cache.php +++ b/inc/dropins/redis-object-cache.php @@ -506,7 +506,7 @@ public function delete( $key, $group = 'default', $force = false ) { $result = $this->_call_redis( 'hDel', $redis_safe_group, $key ); } else { $id = $this->_key( $key, $group ); - $result = $this->_call_redis( 'delete', $id ); + $result = $this->_call_redis( 'del', $id ); } if ( 1 !== $result ) { return false; @@ -532,7 +532,7 @@ public function delete_group( $group ) { $multisite_safe_group = $this->multisite && ! isset( $this->global_groups[ $group ] ) ? $this->blog_prefix . $group : $group; $redis_safe_group = $this->_key( '', $group ); if ( $this->_should_persist( $group ) ) { - $result = $this->_call_redis( 'delete', $redis_safe_group ); + $result = $this->_call_redis( 'del', $redis_safe_group ); if ( 1 !== $result ) { return false; }