From 96474d5dc9861734d021fd4530a7e6741b8f09c3 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 17 Jul 2009 12:37:57 -0600 Subject: [PATCH] Only log on success. --- framework/Core/lib/Horde/Registry.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); + } } } } -- 2.11.0