diff --git a/README.md b/README.md index 74804f7..2058a62 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ **Tags:** cache, plugin, redis **Requires at least:** 3.0.1 **Tested up to:** 6.1.1 -**Stable tag:** 1.3.1 +**Stable tag:** 1.3.2 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -104,13 +104,16 @@ There's a known issue with WordPress `alloptions` cache design. Specifically, a ## Changelog ## -### 1.3.1 (December 2nd, 2022) ### +### 1.3.2 (December 5, 2022) ### +* Fix broken `wp_cache_supports` function [[#382](https://github.com/pantheon-systems/wp-redis/pull/382)]. + +### 1.3.1 (December 2, 2022) ### * Declare `wp_cache_supports` function and support features. [[#378](https://github.com/pantheon-systems/wp-redis/pull/378)] * Make dependabot target `develop` branch for PRs. [[#376](https://github.com/pantheon-systems/wp-redis/pull/376)] Declare `wp_cache_supports` function and support features. [[#378](https://github.com/pantheon-systems/wp-redis/pull/378)] -### 1.3.0 (November 29th, 2022) ### +### 1.3.0 (November 29, 2022) ### * Added CONTRIBUTING.MD and GitHub action to automate deployments to wp.org. [[#368](https://github.com/pantheon-systems/wp-redis/pull/368)] ### 1.2.0 (February 17, 2022) ### diff --git a/object-cache.php b/object-cache.php index 04b9948..1179e00 100644 --- a/object-cache.php +++ b/object-cache.php @@ -301,14 +301,14 @@ function wp_cache_reset() { */ function wp_cache_supports( $feature ) { switch ( $feature ) { + case 'get_multiple': + return true; + case 'add_multiple': case 'set_multiple': - case 'get_multiple': case 'delete_multiple': case 'flush_runtime': case 'flush_group': - return true; - default: return false; } diff --git a/package-lock.json b/package-lock.json index 18339cd..3b57028 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "wp-redis", - "version": "1.3.1", + "version": "1.3.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0eca0b0..aab338d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wp-redis", - "version": "1.3.1", + "version": "1.3.2", "repository": { "type": "git", "url": "https://github.com/pantheon-systems/wp-redis.git" diff --git a/readme.txt b/readme.txt index 4c185fa..0a92851 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: getpantheon, danielbachhuber, mboynes, Outlandish Josh Tags: cache, plugin, redis Requires at least: 3.0.1 Tested up to: 6.1.1 -Stable tag: 1.3.1 +Stable tag: 1.3.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -102,11 +102,14 @@ There's a known issue with WordPress `alloptions` cache design. Specifically, a == Changelog == -= 1.3.1 (December 2nd, 2022) = += 1.3.2 (December 5, 2022) = +* Fix broken `wp_cache_supports` function [[#382](https://github.com/pantheon-systems/wp-redis/pull/382)]. + += 1.3.1 (December 2, 2022) = * Declare `wp_cache_supports` function and support features. [[#378](https://github.com/pantheon-systems/wp-redis/pull/378)] * Make dependabot target `develop` branch for PRs. [[#376](https://github.com/pantheon-systems/wp-redis/pull/376)] -= 1.3.0 (November 29th, 2022) = += 1.3.0 (November 29, 2022) = * Added CONTRIBUTING.MD and GitHub action to automate deployments to wp.org. [[#368](https://github.com/pantheon-systems/wp-redis/pull/368)] = 1.2.0 (February 17, 2022) = diff --git a/wp-redis.php b/wp-redis.php index a943bbd..77d57d6 100644 --- a/wp-redis.php +++ b/wp-redis.php @@ -3,7 +3,7 @@ * Plugin Name: WP Redis * Plugin URI: http://github.com/pantheon-systems/wp-redis/ * Description: WordPress Object Cache using Redis. Requires the PhpRedis extension (https://github.com/phpredis/phpredis). - * Version: 1.3.1 + * Version: 1.3.2 * Author: Pantheon, Josh Koenig, Matthew Boynes, Daniel Bachhuber, Alley Interactive * Author URI: https://pantheon.io/ */