]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Remove logging from default cache
authorEvan Prodromou <evan@status.net>
Sun, 3 Jan 2010 21:28:15 +0000 (11:28 -1000)
committerEvan Prodromou <evan@status.net>
Sun, 3 Jan 2010 21:28:15 +0000 (11:28 -1000)
lib/cache.php

index 23657bbf348ec436d26b372432f72ce61dab1246..253839fb17dbe75c9a9ce6751107b944099cd881 100644 (file)
@@ -120,10 +120,7 @@ class Cache
 
         if (Event::handle('StartCacheGet', array(&$key, &$value))) {
             if (array_key_exists($key, $this->_items)) {
-                common_log(LOG_INFO, 'Cache HIT for key ' . $key);
                 $value = $this->_items[$key];
-            } else {
-                common_log(LOG_INFO, 'Cache MISS for key ' . $key);
             }
             Event::handle('EndCacheGet', array($key, &$value));
         }
@@ -148,7 +145,6 @@ class Cache
 
         if (Event::handle('StartCacheSet', array(&$key, &$value, &$flag,
                                                  &$expiry, &$success))) {
-            common_log(LOG_INFO, 'Setting cache value for key ' . $key);
 
             $this->_items[$key] = $value;
 
@@ -175,7 +171,6 @@ class Cache
 
         if (Event::handle('StartCacheDelete', array(&$key, &$success))) {
             if (array_key_exists($key, $this->_items[$key])) {
-                common_log(LOG_INFO, 'Deleting cache value for key ' . $key);
                 unset($this->_items[$key]);
             }
             $success = true;