Skip to content

Commit

Permalink
[BUGS-5583] Release 1.3.1 (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Spellman authored Dec 2, 2022
1 parent 4763104 commit 7c71e6a
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ updates:
interval: weekly
timezone: America/Los_Angeles
day: tuesday
target-branch: "develop"
open-pull-requests-limit: 99
ignore:
- dependency-name: phpunit/phpunit
Expand All @@ -22,4 +23,5 @@ updates:
interval: weekly
timezone: America/Los_Angeles
day: tuesday
target-branch: "develop"
open-pull-requests-limit: 99
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
**Contributors:** [getpantheon](https://profiles.wordpress.org/getpantheon), [danielbachhuber](https://profiles.wordpress.org/danielbachhuber), [mboynes](https://profiles.wordpress.org/mboynes), [Outlandish Josh](https://profiles.wordpress.org/Outlandish Josh)
**Tags:** cache, plugin, redis
**Requires at least:** 3.0.1
**Tested up to:** 5.9
**Stable tag:** 1.3.0
**Tested up to:** 6.1.1
**Stable tag:** 1.3.1
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -104,6 +104,12 @@ There's a known issue with WordPress `alloptions` cache design. Specifically, a

## Changelog ##

### 1.3.1 (December 2nd, 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) ###
* Added CONTRIBUTING.MD and GitHub action to automate deployments to wp.org. [[#368](https://github.com/pantheon-systems/wp-redis/pull/368)]

Expand Down
25 changes: 25 additions & 0 deletions object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,31 @@ function wp_cache_reset() {
return $wp_object_cache->reset();
}

/**
* Determines whether the object cache implementation supports a particular feature.
*
* @since 6.1.0
*
* @param string $feature Name of the feature to check for. Possible values include:
* 'add_multiple', 'set_multiple', 'get_multiple', 'delete_multiple',
* 'flush_runtime', 'flush_group'.
* @return bool True if the feature is supported, false otherwise.
*/
function wp_cache_supports( $feature ) {
switch ( $feature ) {
case 'add_multiple':
case 'set_multiple':
case 'get_multiple':
case 'delete_multiple':
case 'flush_runtime':
case 'flush_group':
return true;

default:
return false;
}
}

/**
* WordPress Object Cache
*
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wp-redis",
"version": "1.3.0",
"version": "1.3.1",
"repository": {
"type": "git",
"url": "https://github.com/pantheon-systems/wp-redis.git"
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: getpantheon, danielbachhuber, mboynes, Outlandish Josh
Tags: cache, plugin, redis
Requires at least: 3.0.1
Tested up to: 5.9
Stable tag: 1.3.0
Tested up to: 6.1.1
Stable tag: 1.3.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -102,6 +102,10 @@ There's a known issue with WordPress `alloptions` cache design. Specifically, a

== Changelog ==

= 1.3.1 (December 2nd, 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) =
* Added CONTRIBUTING.MD and GitHub action to automate deployments to wp.org. [[#368](https://github.com/pantheon-systems/wp-redis/pull/368)]

Expand Down
2 changes: 1 addition & 1 deletion wp-redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.0
* Version: 1.3.1
* Author: Pantheon, Josh Koenig, Matthew Boynes, Daniel Bachhuber, Alley Interactive
* Author URI: https://pantheon.io/
*/
Expand Down

0 comments on commit 7c71e6a

Please sign in to comment.