From: Michael M Slusarz Date: Tue, 9 Nov 2010 17:03:32 +0000 (-0700) Subject: Purge IMP_Imap_Tree object from cache on logout X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=84528fff38ad952cdc97db30462e32eb0b224ea0;p=horde.git Purge IMP_Imap_Tree object from cache on logout --- 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. */