From: Michael M Slusarz Date: Fri, 17 Jul 2009 18:37:57 +0000 (-0600) Subject: Only log on success. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=96474d5dc9861734d021fd4530a7e6741b8f09c3;p=horde.git Only log on success. --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index d9d3ecd71..8a2603916 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -1079,8 +1079,9 @@ class Horde_Registry $data = serialize($this->_cache[$name]); $_SESSION['_registry']['md5'][$name] = $md5sum = hash('md5', $data); $id = $this->_getCacheId($name, false) . '|' . $md5sum; - $this->_cacheob->set($id, $data, 86400); - Horde::logMessage('Horde_Registry: stored ' . $name . ' with cache ID ' . $id, __FILE__, __LINE__, PEAR_LOG_DEBUG); + if ($this->_cacheob->set($id, $data, 86400)) { + Horde::logMessage('Horde_Registry: stored ' . $name . ' with cache ID ' . $id, __FILE__, __LINE__, PEAR_LOG_DEBUG); + } } } }