[PLUGINS] Removed direct call of EndCache events on all plugins, as it is now handled by the library

This commit is contained in:
Miguel Dantas 2019-08-13 03:02:05 +01:00 committed by Diogo Peralta Cordeiro
parent d8d7abee9f
commit d7c2c98a02
4 changed files with 0 additions and 16 deletions

View File

@ -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;
}

View File

@ -98,7 +98,6 @@ class InProcessCachePlugin extends Plugin
} else {
$this->_hits[$key] = 1;
}
Event::handle('EndCacheGet', array($key, &$value));
return false;
}
return true;

View File

@ -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;
}

View File

@ -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;
}