Revert commenting out cache code.
authorJan Schneider <jan@horde.org>
Sun, 23 Jan 2011 21:35:50 +0000 (22:35 +0100)
committerJan Schneider <jan@horde.org>
Sun, 23 Jan 2011 21:35:50 +0000 (22:35 +0100)
framework/Share/lib/Horde/Share/Sql.php

index 4751a83..5b5a561 100644 (file)
@@ -363,9 +363,9 @@ class Horde_Share_Sql extends Horde_Share_Base
                                     'all_levels' => true),
                               $params);
         $key = md5(serialize(array($userid, $params)));
-        //if (!empty($this->_listcache[$key])) {
-        //    return $this->_listcache[$key];
-        //}
+        if (!empty($this->_listcache[$key])) {
+            return $this->_listcache[$key];
+        }
         $shares = array();
         if (is_null($params['sort_by'])) {
             $sortfield = 's.share_id';