Version Description
- Fixed missing
$info
variable assignment in constructor - Fixed MaxTTL warning condition
- Switched to using default button styles
Download this release
Release Info
Developer | tillkruess |
Plugin | Redis Object Cache |
Version | 1.5.9 |
Comparing to | |
See all releases |
Code changes from version 1.5.8 to 1.5.9
- includes/admin-page.css +0 -30
- includes/admin-page.php +2 -2
- includes/diagnostics.php +0 -4
- includes/object-cache.php +3 -3
- readme.txt +8 -2
- redis-cache.php +2 -2
includes/admin-page.css
CHANGED
@@ -5,36 +5,6 @@
|
|
5 |
padding-bottom: 7px;
|
6 |
}
|
7 |
|
8 |
-
.wrap .button.delete {
|
9 |
-
background: #d54e21;
|
10 |
-
border-color: #a83d1a;
|
11 |
-
color: white;
|
12 |
-
-webkit-box-shadow: inset 0 1px 0 #e68260, 0 1px 0 rgba(0, 0, 0, 0.15);
|
13 |
-
box-shadow: inset 0 1px 0 #e68260, 0 1px 0 rgba(0, 0, 0, 0.15);
|
14 |
-
}
|
15 |
-
|
16 |
-
.wrap .button.delete:hover,
|
17 |
-
.wrap .button.delete:focus {
|
18 |
-
background: #c7491f;
|
19 |
-
border-color: #923517;
|
20 |
-
color: white;
|
21 |
-
}
|
22 |
-
|
23 |
-
.wrap .button.delete:focus {
|
24 |
-
box-shadow: inset 0 1px 0 #e3704a,
|
25 |
-
0 0 0 1px #d54e21,
|
26 |
-
0 0 2px 1px rgba( 30, 140, 190, .8 );
|
27 |
-
}
|
28 |
-
|
29 |
-
.wrap .button.delete:active {
|
30 |
-
background: #a83d1a;
|
31 |
-
border-color: #923517;
|
32 |
-
color: white;
|
33 |
-
box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ),
|
34 |
-
0 0 0 1px #d54e21,
|
35 |
-
0 0 2px 1px rgba( 30, 140, 190, .8 );
|
36 |
-
}
|
37 |
-
|
38 |
.settings_page_redis-cache .card,
|
39 |
.settings_page_redis-cache br.clearfix {
|
40 |
display: none;
|
5 |
padding-bottom: 7px;
|
6 |
}
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
.settings_page_redis-cache .card,
|
9 |
.settings_page_redis-cache br.clearfix {
|
10 |
display: none;
|
includes/admin-page.php
CHANGED
@@ -82,7 +82,7 @@
|
|
82 |
<td>
|
83 |
<code><?php echo esc_html( $redisMaxTTL ); ?></code>
|
84 |
|
85 |
-
<?php if ( ! is_int( $redisMaxTTL ) && ! ctype_digit( $redisMaxTTL )
|
86 |
<p class="description" style="color: #d54e21;">
|
87 |
<?php _e( 'This doesn’t appear to be a valid number.', 'redis-cache' ); ?>
|
88 |
</p>
|
@@ -102,7 +102,7 @@
|
|
102 |
<?php if ( ! $this->object_cache_dropin_exists() ) : ?>
|
103 |
<a href="<?php echo wp_nonce_url( network_admin_url( add_query_arg( 'action', 'enable-cache', $this->page ) ), 'enable-cache' ); ?>" class="button button-primary button-large"><?php _e( 'Enable Object Cache', 'redis-cache' ); ?></a>
|
104 |
<?php elseif ( $this->validate_object_cache_dropin() ) : ?>
|
105 |
-
<a href="<?php echo wp_nonce_url( network_admin_url( add_query_arg( 'action', 'disable-cache', $this->page ) ), 'disable-cache' ); ?>" class="button button-secondary button-large
|
106 |
<?php endif; ?>
|
107 |
|
108 |
</p>
|
82 |
<td>
|
83 |
<code><?php echo esc_html( $redisMaxTTL ); ?></code>
|
84 |
|
85 |
+
<?php if ( ! is_int( $redisMaxTTL ) && ! ctype_digit( $redisMaxTTL ) ) : ?>
|
86 |
<p class="description" style="color: #d54e21;">
|
87 |
<?php _e( 'This doesn’t appear to be a valid number.', 'redis-cache' ); ?>
|
88 |
</p>
|
102 |
<?php if ( ! $this->object_cache_dropin_exists() ) : ?>
|
103 |
<a href="<?php echo wp_nonce_url( network_admin_url( add_query_arg( 'action', 'enable-cache', $this->page ) ), 'enable-cache' ); ?>" class="button button-primary button-large"><?php _e( 'Enable Object Cache', 'redis-cache' ); ?></a>
|
104 |
<?php elseif ( $this->validate_object_cache_dropin() ) : ?>
|
105 |
+
<a href="<?php echo wp_nonce_url( network_admin_url( add_query_arg( 'action', 'disable-cache', $this->page ) ), 'disable-cache' ); ?>" class="button button-secondary button-large"><?php _e( 'Disable Object Cache', 'redis-cache' ); ?></a>
|
106 |
<?php endif; ?>
|
107 |
|
108 |
</p>
|
includes/diagnostics.php
CHANGED
@@ -1,9 +1,5 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
// TODO: detect constants being defined too late...
|
4 |
-
// open config file, strpos()
|
5 |
-
// defined to late, or commented out...
|
6 |
-
|
7 |
global $wp_object_cache;
|
8 |
|
9 |
$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.
|
7 |
Author: Till Krüss
|
8 |
Author URI: https://till.im/
|
9 |
License: GPLv3
|
@@ -593,9 +593,9 @@ class WP_Object_Cache
|
|
593 |
|
594 |
if ( ! isset( $options['replication'] ) || ! $options['replication'] ) {
|
595 |
if (defined('WP_REDIS_CLUSTER')) {
|
596 |
-
$this->redis->info(current(array_values(WP_REDIS_CLUSTER)));
|
597 |
} else {
|
598 |
-
$this->redis->info();
|
599 |
}
|
600 |
|
601 |
if (isset($info['redis_version'])) {
|
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.9
|
7 |
Author: Till Krüss
|
8 |
Author URI: https://till.im/
|
9 |
License: GPLv3
|
593 |
|
594 |
if ( ! isset( $options['replication'] ) || ! $options['replication'] ) {
|
595 |
if (defined('WP_REDIS_CLUSTER')) {
|
596 |
+
$info = $this->redis->info(current(array_values(WP_REDIS_CLUSTER)));
|
597 |
} else {
|
598 |
+
$info = $this->redis->info();
|
599 |
}
|
600 |
|
601 |
if (isset($info['redis_version'])) {
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
=== Redis Object Cache ===
|
2 |
Contributors: tillkruess
|
3 |
-
Donate link: https://
|
4 |
Tags: redis, predis, phpredis, hhvm, pecl, caching, cache, object cache, performance, replication, clustering
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 1.5.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -218,6 +218,12 @@ The following commands are supported:
|
|
218 |
|
219 |
== Changelog ==
|
220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
= 1.5.8 =
|
222 |
|
223 |
- Added warning message about invalid MaxTTL
|
1 |
=== Redis Object Cache ===
|
2 |
Contributors: tillkruess
|
3 |
+
Donate link: https://github.com/sponsors/tillkruss
|
4 |
Tags: redis, predis, phpredis, hhvm, pecl, caching, cache, object cache, performance, replication, clustering
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 1.5.9
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
218 |
|
219 |
== Changelog ==
|
220 |
|
221 |
+
= 1.5.9 =
|
222 |
+
|
223 |
+
- Fixed missing `$info` variable assignment in constructor
|
224 |
+
- Fixed MaxTTL warning condition
|
225 |
+
- Switched to using default button styles
|
226 |
+
|
227 |
= 1.5.8 =
|
228 |
|
229 |
- Added warning message about invalid MaxTTL
|
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.
|
7 |
Text Domain: redis-cache
|
8 |
Domain Path: /languages
|
9 |
Author: Till Krüss
|
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
17 |
exit;
|
18 |
}
|
19 |
|
20 |
-
define( 'WP_REDIS_VERSION', '1.5.
|
21 |
|
22 |
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
23 |
require_once dirname( __FILE__ ) . '/includes/wp-cli-commands.php';
|
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.9
|
7 |
Text Domain: redis-cache
|
8 |
Domain Path: /languages
|
9 |
Author: Till Krüss
|
17 |
exit;
|
18 |
}
|
19 |
|
20 |
+
define( 'WP_REDIS_VERSION', '1.5.9' );
|
21 |
|
22 |
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
23 |
require_once dirname( __FILE__ ) . '/includes/wp-cli-commands.php';
|