Skip to content

Commit

Permalink
Release 1.3.4 (#392)
Browse files Browse the repository at this point in the history
* [BUGS-5623] Set missing_redis_message if Redis service is not connected (#391)

* Set missing_redis_message if Redis is not connected

* Release 1.3.4
  • Loading branch information
John Spellman authored Mar 7, 2023
1 parent d1731fa commit 0dafdab
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**Tags:** cache, plugin, redis
**Requires at least:** 3.0.1
**Tested up to:** 6.1.1
**Stable tag:** 1.3.3
**Stable tag:** 1.3.4
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

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

## Changelog ##

### 1.3.4 (March 7, 2023) ###
* Set `missing_redis_message` if Redis service is not connected [[#391](https://github.com/pantheon-systems/wp-redis/pull/391)].

### 1.3.3 (February 28, 2023) ###
* Add PHP 8.2 support [[#388](https://github.com/pantheon-systems/wp-redis/pull/388)].
* Remove Grunt, add valid license to Composer file [[#387](https://github.com/pantheon-systems/wp-redis/pull/387)].
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
Stable tag: 1.3.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 1.3.4 (March 7, 2023) =
* Set `missing_redis_message` if Redis service is not connected [[#391](https://github.com/pantheon-systems/wp-redis/pull/391)].

= 1.3.3 (February 28, 2023) =
* Add PHP 8.2 support [[#388](https://github.com/pantheon-systems/wp-redis/pull/388)].
* Remove Grunt, add valid license to Composer file [[#387](https://github.com/pantheon-systems/wp-redis/pull/387)].
Expand Down
8 changes: 6 additions & 2 deletions 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.3
* Version: 1.3.4
* Author: Pantheon, Josh Koenig, Matthew Boynes, Daniel Bachhuber, Alley Interactive
* Author URI: https://pantheon.io/
*/
Expand Down Expand Up @@ -53,10 +53,14 @@ function wp_redis_get_info() {
}

if ( ! defined( 'WP_REDIS_OBJECT_CACHE' ) || ! WP_REDIS_OBJECT_CACHE ) {
return new WP_Error( 'wp-redis', 'WP Redis object-cache.php file is missing from the wp-content/ directory.' );
return new WP_Error( 'wp-redis', __( 'WP Redis object-cache.php file is missing from the wp-content/ directory.', 'wp-redis' ) );
}

if ( ! $wp_object_cache->is_redis_connected ) {
if ( ! isset( $wp_object_cache->missing_redis_message ) ) {
$wp_object_cache->missing_redis_message = __( 'A Redis service needs to be enabled before the WP Redis object cache will function properly.', 'wp-redis' );
}

return new WP_Error( 'wp-redis', $wp_object_cache->missing_redis_message );
}

Expand Down

0 comments on commit 0dafdab

Please sign in to comment.