From 80f1df74a2a3d835d89216114647ec76bc8f7616 Mon Sep 17 00:00:00 2001
From: Erick Hitter <ehitter@gmail.com>
Date: Sat, 20 Jul 2013 14:04:23 -0400
Subject: [PATCH] Prevent redeclaration fatals when the object cache class is
 instantiated more than once, as happens with Batcache.

---
 object-cache.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/object-cache.php b/object-cache.php
index 35a063e..5f689f9 100644
--- a/object-cache.php
+++ b/object-cache.php
@@ -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( '' );
 
-- 
GitLab