From: Evan Prodromou Date: Sun, 3 Jan 2010 21:28:15 +0000 (-1000) Subject: Remove logging from default cache X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bfa3aa0e7f39ba9b8ff920c480efb4cf52007532;p=quix0rs-gnu-social.git Remove logging from default cache --- diff --git a/lib/cache.php b/lib/cache.php index 23657bbf34..253839fb17 100644 --- a/lib/cache.php +++ b/lib/cache.php @@ -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;