Redis Object Cache - Version 1.5.3

Version Description

  • Fixed: Call to undefined function get_plugin_data()
  • Fixed: Call to undefined method WP_Object_Cache::redis_version()
Download this release

Release Info

Developer tillkruess
Plugin Icon 128x128 Redis Object Cache
Version 1.5.3
Comparing to
See all releases

Code changes from version 1.5.2 to 1.5.3

includes/diagnostics.php CHANGED
@@ -1,7 +1,5 @@
1
  <?php
2
 
3
- // TODO: detect constants being defined too late...
4
-
5
  global $wp_object_cache;
6
 
7
  $info = $plugins = $dropins = array();
1
  <?php
2
 
 
 
3
  global $wp_object_cache;
4
 
5
  $info = $plugins = $dropins = array();
includes/object-cache.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Redis Object Cache Drop-In
4
  Plugin URI: http://wordpress.org/plugins/redis-cache/
5
  Description: A persistent object cache backend powered by Redis. Supports Predis, PhpRedis, HHVM, replication, clustering and WP-CLI.
6
- Version: 1.5.2
7
  Author: Till Krüss
8
  Author URI: https://till.im/
9
  License: GPLv3
3
  Plugin Name: Redis Object Cache Drop-In
4
  Plugin URI: http://wordpress.org/plugins/redis-cache/
5
  Description: A persistent object cache backend powered by Redis. Supports Predis, PhpRedis, HHVM, replication, clustering and WP-CLI.
6
+ Version: 1.5.3
7
  Author: Till Krüss
8
  Author URI: https://till.im/
9
  License: GPLv3
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: redis, predis, phpredis, hhvm, pecl, caching, cache, object cache, perform
5
  Requires at least: 3.3
6
  Tested up to: 5.3
7
  Requires PHP: 5.4
8
- Stable tag: 1.5.2
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -91,7 +91,7 @@ To adjust the connection parameters, define any of the following constants in yo
91
 
92
  * `WP_REDIS_RETRY_INTERVAL` (default: _not set_)
93
 
94
- Amount of time in miliseconds to retry a failed connection attempt.
95
 
96
 
97
  == Configuration Parameters ==
@@ -138,6 +138,14 @@ To adjust the configuration, define any of the following constants in your `wp-c
138
 
139
  Set to `true` to enable the [igbinary](https://github.com/igbinary/igbinary) serializer. Ignored when `WP_REDIS_SERIALIZER` is set.
140
 
 
 
 
 
 
 
 
 
141
 
142
  == Replication & Clustering ==
143
 
@@ -214,6 +222,11 @@ The following commands are supported:
214
 
215
  == Changelog ==
216
 
 
 
 
 
 
217
  = 1.5.2 =
218
 
219
  * Added Redis version to diagnostics
5
  Requires at least: 3.3
6
  Tested up to: 5.3
7
  Requires PHP: 5.4
8
+ Stable tag: 1.5.3
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
91
 
92
  * `WP_REDIS_RETRY_INTERVAL` (default: _not set_)
93
 
94
+ Amount of time in milliseconds to retry a failed connection attempt.
95
 
96
 
97
  == Configuration Parameters ==
138
 
139
  Set to `true` to enable the [igbinary](https://github.com/igbinary/igbinary) serializer. Ignored when `WP_REDIS_SERIALIZER` is set.
140
 
141
+ * `WP_REDIS_DISABLE_BANNERS` (default: _not set_)
142
+
143
+ Set to `false` to disable promotions for [Redis Cache Pro](https://wprediscache.com/).
144
+
145
+ * `WP_REDIS_DISABLE_METRICS` (default: _not set_)
146
+
147
+ Set to `false` to disable the collection of system metrics. No user data such as emails, names, IPs, browser, usage or behavioral data is collected. Just version numbers and anonymous configuration options to help make better development decisions.
148
+
149
 
150
  == Replication & Clustering ==
151
 
222
 
223
  == Changelog ==
224
 
225
+ = 1.5.3 =
226
+
227
+ - Fixed: Call to undefined function `get_plugin_data()`
228
+ - Fixed: Call to undefined method `WP_Object_Cache::redis_version()`
229
+
230
  = 1.5.2 =
231
 
232
  * Added Redis version to diagnostics
redis-cache.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Redis Object Cache
4
  Plugin URI: https://wordpress.org/plugins/redis-cache/
5
  Description: A persistent object cache backend powered by Redis. Supports Predis, PhpRedis, HHVM, replication, clustering and WP-CLI.
6
- Version: 1.5.2
7
  Text Domain: redis-cache
8
  Domain Path: /languages
9
  Author: Till Krüss
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  exit;
17
  }
18
 
19
- define( 'WP_REDIS_VERSION', '1.5.2' );
20
 
21
  if ( defined( 'WP_CLI' ) && WP_CLI ) {
22
  require_once dirname( __FILE__ ) . '/includes/wp-cli-commands.php';
@@ -30,6 +30,8 @@ class RedisObjectCache {
30
 
31
  public function __construct() {
32
 
 
 
33
  load_plugin_textdomain( 'redis-cache', false, 'redis-cache/languages' );
34
 
35
  register_activation_hook( __FILE__, 'wp_cache_flush' );
@@ -215,11 +217,10 @@ class RedisObjectCache {
215
  return;
216
  }
217
 
218
- if ( $this->validate_object_cache_dropin() ) {
219
  return $wp_object_cache->redis_version();
220
  }
221
 
222
- return;
223
  }
224
 
225
  public function get_redis_client_name() {
@@ -234,8 +235,6 @@ class RedisObjectCache {
234
  return WP_REDIS_CLIENT;
235
  }
236
 
237
- return null;
238
-
239
  }
240
 
241
  public function get_redis_cachekey_prefix() {
3
  Plugin Name: Redis Object Cache
4
  Plugin URI: https://wordpress.org/plugins/redis-cache/
5
  Description: A persistent object cache backend powered by Redis. Supports Predis, PhpRedis, HHVM, replication, clustering and WP-CLI.
6
+ Version: 1.5.3
7
  Text Domain: redis-cache
8
  Domain Path: /languages
9
  Author: Till Krüss
16
  exit;
17
  }
18
 
19
+ define( 'WP_REDIS_VERSION', '1.5.3' );
20
 
21
  if ( defined( 'WP_CLI' ) && WP_CLI ) {
22
  require_once dirname( __FILE__ ) . '/includes/wp-cli-commands.php';
30
 
31
  public function __construct() {
32
 
33
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
34
+
35
  load_plugin_textdomain( 'redis-cache', false, 'redis-cache/languages' );
36
 
37
  register_activation_hook( __FILE__, 'wp_cache_flush' );
217
  return;
218
  }
219
 
220
+ if ( $this->validate_object_cache_dropin() && method_exists( $wp_object_cache, 'redis_version' ) ) {
221
  return $wp_object_cache->redis_version();
222
  }
223
 
 
224
  }
225
 
226
  public function get_redis_client_name() {
235
  return WP_REDIS_CLIENT;
236
  }
237
 
 
 
238
  }
239
 
240
  public function get_redis_cachekey_prefix() {