Commit ff2f8c61 authored by Erick Hitter's avatar Erick Hitter

Correct references to static class that holds the Redis instance

parent 8461d283
...@@ -95,13 +95,13 @@ class Redis_Page_Cache { ...@@ -95,13 +95,13 @@ class Redis_Page_Cache {
// Connect to Redis using either the PHP PECL extension of the bundled Predis library // Connect to Redis using either the PHP PECL extension of the bundled Predis library
if ( class_exists( 'Redis' ) ) { if ( class_exists( 'Redis' ) ) {
self::$redis = new Redis(); self::$__redis = new Redis();
self::$redis->connect( $redis_settings['host'], $redis_settings['port'] ); self::$__redis->connect( $redis_settings['host'], $redis_settings['port'] );
// Default DB is 0, so only need to SELECT if other // Default DB is 0, so only need to SELECT if other
if ( isset( $redis_settings['database'] ) ) { if ( isset( $redis_settings['database'] ) ) {
self::$redis->select( $redis_settings['database'] ); self::$__redis->select( $redis_settings['database'] );
} }
} else { } else {
// Load the Predis library and return an instance of it // Load the Predis library and return an instance of it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment