Commit 80f1df74 authored by Erick Hitter's avatar Erick Hitter
Browse files

Prevent redeclaration fatals when the object cache class is instantiated more...

Prevent redeclaration fatals when the object cache class is instantiated more than once, as happens with Batcache.
parent 868c0a8c
......@@ -780,7 +780,7 @@ class WP_Object_Cache {
* @param null $persistent_id To create an instance that persists between requests, use persistent_id to specify a unique ID for the instance.
*/
public function __construct() {
include 'predis/autoload.php';
require_once 'predis/autoload.php';
$this->redis = new Predis\Client( '' );
......
Supports Markdown
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