|
|
@ -463,10 +463,13 @@ class rcube_cache
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private function delete_record($key, $index=true)
|
|
|
|
private function delete_record($key, $index=true)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ($this->type == 'memcache')
|
|
|
|
if ($this->type == 'memcache') {
|
|
|
|
$this->db->delete($this->ckey($key));
|
|
|
|
// #1488592: use 2nd argument
|
|
|
|
else
|
|
|
|
$this->db->delete($this->ckey($key), 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
apc_delete($this->ckey($key));
|
|
|
|
apc_delete($this->ckey($key));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($index) {
|
|
|
|
if ($index) {
|
|
|
|
if (($idx = array_search($key, $this->index)) !== false) {
|
|
|
|
if (($idx = array_search($key, $this->index)) !== false) {
|
|
|
|