summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-02 20:37:30 -1000
committerEvan Prodromou <evan@status.net>2010-01-02 20:37:30 -1000
commit65d07b657dfbda0f696109769192d54856b5b8e8 (patch)
tree7ea5fbd4d032bd6bece76022ba6c683f042cba7b /lib
parente1de1bf0fef4c7ae21ebca99dc4f38746c9d2df2 (diff)
invert if for cache handling
Diffstat (limited to 'lib')
-rw-r--r--lib/cache.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cache.php b/lib/cache.php
index 31d2f84d2..9ea531c07 100644
--- a/lib/cache.php
+++ b/lib/cache.php
@@ -70,7 +70,7 @@ class Cache
{
$value = null;
- if (!Event::handle('StartCacheGet', array(&$key, &$value))) {
+ 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];
@@ -87,7 +87,7 @@ class Cache
{
$success = false;
- if (!Event::handle('StartCacheSet', array(&$key, &$value, &$flag, &$expiry, &$success))) {
+ if (Event::handle('StartCacheSet', array(&$key, &$value, &$flag, &$expiry, &$success))) {
common_log(LOG_INFO, 'Setting cache value for key ' . $key);
$this->_items[$key] = $value;
$success = true;
@@ -101,7 +101,7 @@ class Cache
{
$success = false;
- if (!Event::handle('StartCacheDelete', array(&$key, &$success))) {
+ 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]);