From: Michael M Slusarz Date: Tue, 16 Nov 2010 05:04:14 +0000 (-0700) Subject: Caching while not authenticated is perfectly valid X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=67f6710adea2f9fec6559ea5c79d3aa50e6868ba;p=horde.git Caching while not authenticated is perfectly valid --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index b46af48f0..682e272dc 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -1500,13 +1500,6 @@ class Horde_Registry */ protected function _saveCacheVar($name, $expire = false) { - /* Using cache while not authenticated isn't possible because, - * although storage is possible, retrieval isn't since there is no - * MD5 sum in the session to use to build the cache IDs. */ - if (!$this->getAuth()) { - return; - } - $ob = $GLOBALS['injector']->getInstance('Horde_Cache'); if ($expire) { @@ -1537,11 +1530,7 @@ class Horde_Registry return true; } - /* Using cache while not authenticated isn't possible because, - * although storage is possible, retrieval isn't since there is no - * MD5 sum in the session to use to build the cache IDs. */ - if ($this->getAuth() && - ($id = $this->_getCacheId($name))) { + if ($id = $this->_getCacheId($name)) { $result = $GLOBALS['injector']->getInstance('Horde_Cache')->get($id, 86400); if ($result !== false) { $this->_cache[$name] = unserialize($result);