diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d52649d..4786ee55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.4.4 + +- Improved handling of unexpected transaction results + ## 2.4.3 - Fixed PHP `<=7.2` syntax error diff --git a/includes/object-cache.php b/includes/object-cache.php index ac745c83..001776e1 100644 --- a/includes/object-cache.php +++ b/includes/object-cache.php @@ -3,7 +3,7 @@ * Plugin Name: Redis Object Cache Drop-In * Plugin URI: https://wordpress.org/plugins/redis-cache/ * Description: A persistent object cache backend powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI. - * Version: 2.4.3 + * Version: 2.4.4 * Author: Till Krüss * Author URI: https://objectcache.pro * License: GPLv3 @@ -1300,6 +1300,7 @@ protected function add_multiple_at_once( array $data, $group = 'default', $expir if ( count( $results ) !== count( $keys ) ) { $tx->discard(); + return array_fill_keys( $keys, false ); } @@ -1550,6 +1551,7 @@ protected function delete_multiple_at_once( array $keys, $group = 'default' ) { if ( count( $results ) !== count( $keys ) ) { $tx->discard(); + return array_fill_keys( $keys, false ); } @@ -2273,6 +2275,7 @@ protected function set_multiple_at_once( array $data, $group = 'default', $expir if ( count( $results ) !== count( $keys ) ) { $tx->discard(); + return array_fill_keys( $keys, false ); } diff --git a/languages/redis-cache.pot b/languages/redis-cache.pot index 94e54642..ee01ff2a 100644 --- a/languages/redis-cache.pot +++ b/languages/redis-cache.pot @@ -2,14 +2,14 @@ # This file is distributed under the GPLv3. msgid "" msgstr "" -"Project-Id-Version: Redis Object Cache 2.4.3\n" +"Project-Id-Version: Redis Object Cache 2.4.4\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/redis-cache\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-06-29T10:40:20+00:00\n" +"POT-Creation-Date: 2023-08-11T20:06:44+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.8.1\n" "X-Domain: redis-cache\n" @@ -294,30 +294,30 @@ msgstr "" msgid "Object cache drop-in could not be updated. Redis server is unreachable: %s" msgstr "" -#: includes/object-cache.php:2911 +#: includes/object-cache.php:2916 msgid "Error establishing a Redis connection" msgstr "" #. translators: %s = Formatted wp-config.php file name. -#: includes/object-cache.php:2918 +#: includes/object-cache.php:2923 msgid "WordPress is unable to establish a connection to Redis. This means that the connection information in your %s file are incorrect, or that the Redis server is not reachable." msgstr "" -#: includes/object-cache.php:2923 +#: includes/object-cache.php:2928 msgid "Is the correct Redis host and port set?" msgstr "" -#: includes/object-cache.php:2924 +#: includes/object-cache.php:2929 msgid "Is the Redis server running?" msgstr "" #. translators: %s = Link to installation instructions. -#: includes/object-cache.php:2929 +#: includes/object-cache.php:2934 msgid "If you need help, please read the installation instructions." msgstr "" #. translators: %1$s = Formatted object-cache.php file name, %2$s = Formatted wp-content directory name. -#: includes/object-cache.php:2936 +#: includes/object-cache.php:2941 msgid "To disable Redis, delete the %1$s file in the %2$s directory." msgstr "" diff --git a/readme.txt b/readme.txt index 83d06c8a..61d7209e 100644 --- a/readme.txt +++ b/readme.txt @@ -3,9 +3,9 @@ Contributors: tillkruess, a5hleyrich Donate link: https://github.com/sponsors/tillkruss Tags: redis, object cache, cache, object caching, caching performance, relay, predis, phpredis Requires at least: 3.3 -Tested up to: 6.2 +Tested up to: 6.3 Requires PHP: 7.2 -Stable tag: 2.4.3 +Stable tag: 2.4.4 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -62,6 +62,10 @@ Redis Object Cache has various WP CLI commands, for more information run `wp hel == Changelog == += 2.4.4 = + +- Improved handling of unexpected transaction results + = 2.4.3 = - Fixed PHP `<=7.2` syntax error diff --git a/redis-cache.php b/redis-cache.php index 3fa881a0..b8a69ca1 100644 --- a/redis-cache.php +++ b/redis-cache.php @@ -3,7 +3,7 @@ * Plugin Name: Redis Object Cache * Plugin URI: https://wordpress.org/plugins/redis-cache/ * Description: A persistent object cache backend powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI. - * Version: 2.4.3 + * Version: 2.4.4 * Text Domain: redis-cache * Domain Path: /languages * Network: true