From 67f6710adea2f9fec6559ea5c79d3aa50e6868ba Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 15 Nov 2010 22:04:14 -0700 Subject: [PATCH] Caching while not authenticated is perfectly valid --- framework/Core/lib/Horde/Registry.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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); -- 2.11.0