Only log on success.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 17 Jul 2009 18:37:57 +0000 (12:37 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 17 Jul 2009 18:37:57 +0000 (12:37 -0600)
framework/Core/lib/Horde/Registry.php

index d9d3ecd..8a26039 100644 (file)
@@ -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);
+                }
             }
         }
     }