From 84528fff38ad952cdc97db30462e32eb0b224ea0 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 9 Nov 2010 10:03:32 -0700 Subject: [PATCH] Purge IMP_Imap_Tree object from cache on logout --- imp/lib/Application.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/imp/lib/Application.php b/imp/lib/Application.php index 3f5373a1c..2678a04a4 100644 --- a/imp/lib/Application.php +++ b/imp/lib/Application.php @@ -151,6 +151,12 @@ class IMP_Application extends Horde_Registry_Application foreach (array_keys($GLOBALS['session']->get('imp', 'compose_cache', Horde_Session::TYPE_ARRAY)) as $key) { $GLOBALS['injector']->getInstance('IMP_Injector_Factory_Compose')->create($key)->destroy('cancel'); } + + /* No need to keep Tree object in cache - it will be recreated next + * login. */ + if ($treeob = $GLOBALS['session']->get('imp', 'treeob')) { + $GLOBALS['injector']->getInstance('Horde_Cache')->expire($treeob); + } } /* Horde permissions. */ -- 2.11.0