Redis Object Cache - Version 2.0.20

Version Description

  • Fix wp.org release
Download this release

Release Info

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

Code changes from version 2.0.19 to 2.0.20

includes/cli/class-commands.php CHANGED
@@ -36,42 +36,6 @@ class Commands extends WP_CLI_Command {
36
  require_once __DIR__ . '/../ui/diagnostics.php';
37
  }
38
 
39
- /**
40
- * Show the Redis object cache status and (when possible) client.
41
- *
42
- * ## EXAMPLES
43
- *
44
- * wp redis metrics
45
- */
46
- public function metrics() {
47
- global $wp_object_cache;
48
-
49
- if ( defined( 'WP_REDIS_DISABLE_METRICS' ) && WP_REDIS_DISABLE_METRICS ) {
50
- WP_CLI::error( __( 'Enable object cache to collect data.', 'redis-cache' ) );
51
-
52
- return;
53
- }
54
-
55
- if ( ! method_exists( $wp_object_cache, 'redis_instance' ) ) {
56
- return;
57
- }
58
-
59
- try {
60
- $metrics = $wp_object_cache->redis_instance()->zrangebyscore(
61
- $wp_object_cache->build_key( 'metrics', 'redis-cache' ),
62
- time() - ( MINUTE_IN_SECONDS * 30 ),
63
- time() - MINUTE_IN_SECONDS,
64
- [ 'withscores' => true ]
65
- );
66
-
67
- wp_localize_script( 'redis-cache', 'rediscache_metrics', $metrics );
68
- } catch ( Exception $exception ) {
69
- error_log( $exception ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
70
- }
71
-
72
- var_dump($metrics);
73
- }
74
-
75
  /**
76
  * Enables the Redis object cache.
77
  *
36
  require_once __DIR__ . '/../ui/diagnostics.php';
37
  }
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  /**
40
  * Enables the Redis object cache.
41
  *
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, Credis, HHVM, replication, clustering and WP-CLI.
6
- * Version: 2.0.20-dev
7
  * Author: Till Krüss
8
  * Author URI: https://objectcache.pro
9
  * License: GPLv3
@@ -1979,8 +1979,6 @@ LUA;
1979
  );
1980
 
1981
  return (object) [
1982
- // Connected, Disabled, Unknown, Not connected
1983
- // 'status' => '...',
1984
  'hits' => $this->cache_hits,
1985
  'misses' => $this->cache_misses,
1986
  'ratio' => $total > 0 ? round( $this->cache_hits / ( $total / 100 ), 1 ) : 100,
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, Credis, HHVM, replication, clustering and WP-CLI.
6
+ * Version: 2.0.20
7
  * Author: Till Krüss
8
  * Author URI: https://objectcache.pro
9
  * License: GPLv3
1979
  );
1980
 
1981
  return (object) [
 
 
1982
  'hits' => $this->cache_hits,
1983
  'misses' => $this->cache_misses,
1984
  'ratio' => $total > 0 ? round( $this->cache_hits / ( $total / 100 ), 1 ) : 100,
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: tillkruess
3
  Donate link: https://github.com/sponsors/tillkruss
4
  Tags: redis, predis, phpredis, credis, hhvm, pecl, caching, cache, object cache, performance, replication, clustering, keydb
5
  Requires at least: 3.3
6
- Tested up to: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.19
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -83,6 +83,10 @@ To see a list of all available WP-CLI commands, please see the [WP CLI commands
83
 
84
  == Changelog ==
85
 
 
 
 
 
86
  = 2.0.19 =
87
 
88
  - Make metric identifier unique
3
  Donate link: https://github.com/sponsors/tillkruss
4
  Tags: redis, predis, phpredis, credis, hhvm, pecl, caching, cache, object cache, performance, replication, clustering, keydb
5
  Requires at least: 3.3
6
+ Tested up to: 5.8
7
  Requires PHP: 5.6
8
+ Stable tag: 2.0.20
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
83
 
84
  == Changelog ==
85
 
86
+ = 2.0.20 =
87
+
88
+ - Fix wp.org release
89
+
90
  = 2.0.19 =
91
 
92
  - Make metric identifier unique
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, Credis, HHVM, replication, clustering and WP-CLI.
6
- * Version: 2.0.20-dev
7
  * Text Domain: redis-cache
8
  * Domain Path: /languages
9
  * Network: true
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, Credis, HHVM, replication, clustering and WP-CLI.
6
+ * Version: 2.0.20
7
  * Text Domain: redis-cache
8
  * Domain Path: /languages
9
  * Network: true