From 249303d4415bc77b5f57abe1780322b45a1a9578 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 21 Feb 2012 15:46:15 -0500
Subject: [PATCH] Fix message cache expunge after config options changed

---
 program/include/rcmail.php |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index f6e2b4b..a3c04ef 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -704,8 +704,7 @@
     $this->session = new rcube_session($this->get_dbh(), $this->config);
 
     $this->session->register_gc_handler('rcmail_temp_gc');
-    if ($this->config->get('enable_caching'))
-      $this->session->register_gc_handler('rcmail_cache_gc');
+    $this->session->register_gc_handler('rcmail_cache_gc');
 
     // start PHP session (if not in CLI mode)
     if ($_SERVER['REMOTE_ADDR'])

--
Gitblit v1.9.1