From: Michael M Slusarz Date: Tue, 19 Oct 2010 22:59:50 +0000 (-0600) Subject: Don't cache prefs if using session storage driver X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d810a6e13f53ad48721747971a2327517ad4308c;p=horde.git Don't cache prefs if using session storage driver --- diff --git a/framework/Core/lib/Horde/Core/Factory/Prefs.php b/framework/Core/lib/Horde/Core/Factory/Prefs.php index 320f7b247..0bf3a4e54 100644 --- a/framework/Core/lib/Horde/Core/Factory/Prefs.php +++ b/framework/Core/lib/Horde/Core/Factory/Prefs.php @@ -116,6 +116,10 @@ class Horde_Core_Factory_Prefs $params['ldap'] = $this->_injector->getInstance('Horde_Core_Factory_Ldap')->getLdap('horde', 'ldap'); break; + case 'Session': + unset($opts['cache']); + break; + case 'Sql': $params['db'] = $this->_injector->getInstance('Horde_Db_Adapter'); $opts['charset'] = $params['db']->getOption('charset'); @@ -131,6 +135,7 @@ class Horde_Core_Factory_Prefs $GLOBALS['notification']->push($this->_coreDict->t("The preferences backend is currently unavailable and your preferences have not been loaded. You may continue to use the system with default preferences.")); } } + unset($opts['cache']); $this->_instances[$sig] = new Horde_Prefs('Horde_Core_Prefs_Storage_Session', $scope, $opts); } }