forked from GNUsocial/gnu-social
[PLUGINS] Removed direct call of EndCache events on all plugins, as it is now handled by the library
This commit is contained in:
committed by
Diogo Cordeiro
parent
b214d8b6ee
commit
e2e8885ce3
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user