Redis Object Cache - Version 1.1.1

Version Description

  • Call select() and optionally auth() if HHVM extension is used
Download this release

Release Info

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

Code changes from version 1.1 to 1.1.1

Files changed (3) hide show
  1. includes/object-cache.php +9 -1
  2. readme.txt +9 -1
  3. redis-cache.php +1 -1
includes/object-cache.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Redis Object Cache
4
  Plugin URI: http://wordpress.org/plugins/redis-cache/
5
  Description: A Redis backend for the WordPress Object Cache based on the Predis client library for PHP.
6
- Version: 1.1
7
  Author: Till Krüss
8
  Author URI: http://till.kruss.me/
9
  License: GPLv3
@@ -378,6 +378,14 @@ class WP_Object_Cache {
378
  throw new Exception;
379
  }
380
 
 
 
 
 
 
 
 
 
381
  $this->redis_connected = true;
382
 
383
  } elseif ( strcasecmp( 'pecl', $redis_client ) === 0 ) {
3
  Plugin Name: Redis Object Cache
4
  Plugin URI: http://wordpress.org/plugins/redis-cache/
5
  Description: A Redis backend for the WordPress Object Cache based on the Predis client library for PHP.
6
+ Version: 1.1.1
7
  Author: Till Krüss
8
  Author URI: http://till.kruss.me/
9
  License: GPLv3
378
  throw new Exception;
379
  }
380
 
381
+ if ( isset( $redis[ 'password' ] ) ) {
382
+ $this->redis->auth( $redis[ 'password' ] );
383
+ }
384
+
385
+ if ( isset( $redis[ 'database' ] ) ) {
386
+ $this->redis->select( $redis[ 'database' ] );
387
+ }
388
+
389
  $this->redis_connected = true;
390
 
391
  } elseif ( strcasecmp( 'pecl', $redis_client ) === 0 ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://till.kruss.me/donations/
4
  Tags: redis, predis, hhvm, pecl, caching, cache, object cache, wp object cache, server, performance, optimize, speed, load
5
  Requires at least: 3.3
6
  Tested up to: 4.2
7
- Stable tag: 1.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -83,6 +83,10 @@ Users with setups where multiple installs share a common `wp-config.php` or `$ta
83
 
84
  == Changelog ==
85
 
 
 
 
 
86
  = 1.1 =
87
 
88
  * Added support for HHVM's Redis extension
@@ -115,6 +119,10 @@ Users with setups where multiple installs share a common `wp-config.php` or `$ta
115
 
116
  == Upgrade Notice ==
117
 
 
 
 
 
118
  = 1.1 =
119
 
120
  This update includes bug fixes and adds supports for HHVM/PCEL Redis extensions.
4
  Tags: redis, predis, hhvm, pecl, caching, cache, object cache, wp object cache, server, performance, optimize, speed, load
5
  Requires at least: 3.3
6
  Tested up to: 4.2
7
+ Stable tag: 1.1.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
83
 
84
  == Changelog ==
85
 
86
+ = 1.1.1 =
87
+
88
+ * Call `select()` and optionally `auth()` if HHVM extension is used
89
+
90
  = 1.1 =
91
 
92
  * Added support for HHVM's Redis extension
119
 
120
  == Upgrade Notice ==
121
 
122
+ = 1.1.1 =
123
+
124
+ This update fixes critial bugs with the HHVM extension
125
+
126
  = 1.1 =
127
 
128
  This update includes bug fixes and adds supports for HHVM/PCEL Redis extensions.
redis-cache.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Redis Object Cache
4
  Plugin URI: http://wordpress.org/plugins/redis-cache/
5
  Description: A Redis backend for the WordPress Object Cache based on the Predis client library for PHP.
6
- Version: 1.1
7
  Text Domain: redis-cache
8
  Domain Path: /languages
9
  Author: Till Krüss
3
  Plugin Name: Redis Object Cache
4
  Plugin URI: http://wordpress.org/plugins/redis-cache/
5
  Description: A Redis backend for the WordPress Object Cache based on the Predis client library for PHP.
6
+ Version: 1.1.1
7
  Text Domain: redis-cache
8
  Domain Path: /languages
9
  Author: Till Krüss