Version Description
Download this release
Release Info
Developer | tillkruess |
Plugin | Redis Object Cache |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- includes/object-cache.php +1 -1
- readme.txt +1 -1
- redis-cache.php +14 -6
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.2
|
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 |
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 1.6.2
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
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,19 +481,27 @@ class RedisObjectCache {
|
|
481 |
public function maybe_print_comment() {
|
482 |
global $wp_object_cache;
|
483 |
|
484 |
-
if ( defined( '
|
485 |
return;
|
486 |
}
|
487 |
|
488 |
-
if ( defined( '
|
489 |
return;
|
490 |
}
|
491 |
|
492 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
493 |
return;
|
494 |
}
|
495 |
|
496 |
-
if (
|
497 |
return;
|
498 |
}
|
499 |
|
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.2
|
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.2' );
|
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( 'WP_REDIS_DISABLE_COMMENT' ) && WP_REDIS_DISABLE_COMMENT ) {
|
485 |
return;
|
486 |
}
|
487 |
|
488 |
+
if ( ! defined( 'WP_USE_THEMES' ) || ! WP_USE_THEMES ) {
|
489 |
return;
|
490 |
}
|
491 |
|
492 |
+
if (
|
493 |
+
( defined( 'DOING_CRON' ) && DOING_CRON ) ||
|
494 |
+
( defined( 'DOING_AJAX' ) && DOING_AJAX ) ||
|
495 |
+
( defined( 'REST_REQUEST' ) && REST_REQUEST ) ||
|
496 |
+
( defined( 'JSON_REQUEST' ) && JSON_REQUEST ) ||
|
497 |
+
( defined( 'IFRAME_REQUEST' ) && IFRAME_REQUEST ) ||
|
498 |
+
( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) ||
|
499 |
+
( defined( 'WC_API_REQUEST' ) && WC_API_REQUEST )
|
500 |
+
) {
|
501 |
return;
|
502 |
}
|
503 |
|
504 |
+
if ( function_exists( 'wp_is_json_request' ) && wp_is_json_request() ) {
|
505 |
return;
|
506 |
}
|
507 |
|