Skip to content
Snippets Groups Projects
Commit ff2f8c61 authored by Erick Hitter's avatar Erick Hitter
Browse files

Correct references to static class that holds the Redis instance

parent 8461d283
Branches
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment