CRM-17832 - Fix method call to Redis
authorColeman Watts <coleman@civicrm.org>
Sat, 2 Apr 2016 01:32:19 +0000 (21:32 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 2 Apr 2016 01:32:19 +0000 (21:32 -0400)
CRM/Utils/Cache/Redis.php

index 12a4b357bea35354413cee6f978eca46efb40434..52cba1869080a8caa0b5a641008358f2a8dc2c70 100644 (file)
@@ -73,7 +73,7 @@ class CRM_Utils_Cache_Redis implements CRM_Utils_Cache_Interface {
   /**
    * The actual redis object
    *
-   * @var resource
+   * @var Redis
    */
   protected $_cache;
 
@@ -147,7 +147,7 @@ class CRM_Utils_Cache_Redis implements CRM_Utils_Cache_Interface {
    * @return mixed
    */
   public function flush() {
-    return $this->_cache->flush();
+    return $this->_cache->flushDB();
   }
 
 }