From 60b6d7c3894f61eb9c8bc40efe5528e91386bf94 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 9 Jun 2013 11:07:46 +0200 Subject: Fix database cache expunge issues (#1489149) - added 'expires' column --- program/lib/Roundcube/rcube.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'program/lib/Roundcube/rcube.php') diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index ebfa4f8aa..8d17827be 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -478,15 +478,9 @@ class rcube */ public function gc() { - foreach ($this->caches as $cache) { - if (is_object($cache)) { - $cache->expunge(); - } - } - - if (is_object($this->storage)) { - $this->storage->expunge_cache(); - } + rcube_cache::gc(); + rcube_cache_shared::gc(); + $this->get_storage()->cache_gc(); $this->gc_temp(); } -- cgit v1.2.3