Remove logging from default cache
This commit is contained in:
parent
1053abd2e8
commit
bfa3aa0e7f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user