[PLUGINS] Removed direct call of EndCache events on all plugins, as it is now handled by the library
This commit is contained in:
parent
d8d7abee9f
commit
d7c2c98a02
|
@ -76,7 +76,6 @@ class DiskCachePlugin extends Plugin
|
|||
}
|
||||
}
|
||||
|
||||
Event::handle('EndCacheGet', array($key, &$value));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -137,9 +136,6 @@ class DiskCachePlugin extends Plugin
|
|||
return false;
|
||||
}
|
||||
|
||||
Event::handle('EndCacheSet', array($key, $value, $flag,
|
||||
$expiry));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -159,7 +155,6 @@ class DiskCachePlugin extends Plugin
|
|||
unlink($filename);
|
||||
}
|
||||
|
||||
Event::handle('EndCacheDelete', array($key));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,7 +98,6 @@ class InProcessCachePlugin extends Plugin
|
|||
} else {
|
||||
$this->_hits[$key] = 1;
|
||||
}
|
||||
Event::handle('EndCacheGet', array($key, &$value));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -105,7 +105,6 @@ class MemcachePlugin extends Plugin
|
|||
{
|
||||
$this->_ensureConn();
|
||||
$value = $this->_conn->get($key);
|
||||
Event::handle('EndCacheGet', array($key, &$value));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -127,8 +126,6 @@ class MemcachePlugin extends Plugin
|
|||
$expiry = $this->defaultExpiry;
|
||||
}
|
||||
$success = $this->_conn->set($key, $value, $this->flag(intval($flag)), $expiry);
|
||||
Event::handle('EndCacheSet', array($key, $value, $flag,
|
||||
$expiry));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -146,7 +143,6 @@ class MemcachePlugin extends Plugin
|
|||
{
|
||||
$this->_ensureConn();
|
||||
$value = $this->_conn->increment($key, $step);
|
||||
Event::handle('EndCacheIncrement', array($key, $step, $value));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -162,7 +158,6 @@ class MemcachePlugin extends Plugin
|
|||
{
|
||||
$this->_ensureConn();
|
||||
$success = $this->_conn->delete($key);
|
||||
Event::handle('EndCacheDelete', array($key));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,6 @@ class MemcachedPlugin extends Plugin
|
|||
{
|
||||
$this->_ensureConn();
|
||||
$value = $this->_conn->get($key);
|
||||
Event::handle('EndCacheGet', array($key, &$value));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -113,8 +112,6 @@ class MemcachedPlugin extends Plugin
|
|||
$expiry = $this->defaultExpiry;
|
||||
}
|
||||
$success = $this->_conn->set($key, $value, $expiry);
|
||||
Event::handle('EndCacheSet', array($key, $value, $flag,
|
||||
$expiry));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -132,7 +129,6 @@ class MemcachedPlugin extends Plugin
|
|||
{
|
||||
$this->_ensureConn();
|
||||
$value = $this->_conn->increment($key, $step);
|
||||
Event::handle('EndCacheIncrement', array($key, $step, $value));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -148,7 +144,6 @@ class MemcachedPlugin extends Plugin
|
|||
{
|
||||
$this->_ensureConn();
|
||||
$success = $this->_conn->delete($key);
|
||||
Event::handle('EndCacheDelete', array($key));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user