Version Description
- Fixed issue with footer comment showing during AJAX requests
Download this release
Release Info
Developer | tillkruess |
Plugin | Redis Object Cache |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.0 to 1.6.1
- includes/object-cache.php +1 -1
- readme.txt +5 -1
- redis-cache.php +14 -2
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.6.
|
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.6.1
|
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.4
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 1.6.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -218,6 +218,10 @@ The following commands are supported:
|
|
218 |
|
219 |
== Changelog ==
|
220 |
|
|
|
|
|
|
|
|
|
221 |
= 1.6.0 =
|
222 |
|
223 |
- Improved group name sanitization (thanks @naxvog)
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 1.6.1
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
218 |
|
219 |
== Changelog ==
|
220 |
|
221 |
+
= 1.6.1 =
|
222 |
+
|
223 |
+
- Fixed issue with footer comment showing during AJAX requests
|
224 |
+
|
225 |
= 1.6.0 =
|
226 |
|
227 |
- Improved group name sanitization (thanks @naxvog)
|
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.6.
|
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.6.
|
21 |
|
22 |
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
23 |
require_once dirname( __FILE__ ) . '/includes/wp-cli-commands.php';
|
@@ -481,6 +481,18 @@ class RedisObjectCache {
|
|
481 |
public function maybe_print_comment() {
|
482 |
global $wp_object_cache;
|
483 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
484 |
if ( defined( 'WP_REDIS_DISABLE_COMMENT' ) && WP_REDIS_DISABLE_COMMENT ) {
|
485 |
return;
|
486 |
}
|
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.6.1
|
7 |
Text Domain: redis-cache
|
8 |
Domain Path: /languages
|
9 |
Author: Till Krüss
|
17 |
exit;
|
18 |
}
|
19 |
|
20 |
+
define( 'WP_REDIS_VERSION', '1.6.1' );
|
21 |
|
22 |
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
23 |
require_once dirname( __FILE__ ) . '/includes/wp-cli-commands.php';
|
481 |
public function maybe_print_comment() {
|
482 |
global $wp_object_cache;
|
483 |
|
484 |
+
if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
|
485 |
+
return;
|
486 |
+
}
|
487 |
+
|
488 |
+
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
489 |
+
return;
|
490 |
+
}
|
491 |
+
|
492 |
+
if ( ! defined( 'WP_USE_THEMES' ) || ! WP_USE_THEMES ) {
|
493 |
+
return;
|
494 |
+
}
|
495 |
+
|
496 |
if ( defined( 'WP_REDIS_DISABLE_COMMENT' ) && WP_REDIS_DISABLE_COMMENT ) {
|
497 |
return;
|
498 |
}
|