Skip to content

Commit

Permalink
This should be handled internally within the factory rather than remo…
Browse files Browse the repository at this point in the history
…tely
  • Loading branch information
slusarz committed Jul 25, 2014
1 parent 553e6c9 commit ed273db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion framework/Core/lib/Horde/Core/Factory/Prefs.php
Expand Up @@ -110,7 +110,7 @@ function_exists($params['user_hook'])) {
ksort($sig_opts);
$sig = hash(
(PHP_MINOR_VERSION >= 4) ? 'fnv132' : 'sha1',
serialize($sig_opts)
serialize($sig_opts) . '|' . $registry->getAuth()
);

if (isset($this->_instances[$sig])) {
Expand Down Expand Up @@ -207,6 +207,8 @@ protected function _notifyError($e)

/**
* Clear the instances cache.
*
* @deprecated
*/
public function clearCache()
{
Expand Down
4 changes: 0 additions & 4 deletions framework/Core/lib/Horde/Registry.php
Expand Up @@ -2059,9 +2059,6 @@ public function clearAuth($destroy = true)
$this->_cache['auth'] = null;
$this->_cache['existing'] = $this->_cache['isauth'] = array();

/* Remove the user's cached preferences if they are present. */
$GLOBALS['injector']->getInstance('Horde_Core_Factory_Prefs')->clearCache();

if ($destroy) {
$session->destroy();
}
Expand Down Expand Up @@ -2510,7 +2507,6 @@ public function setAuth($authId, $credentials, array $options = array())

/* Reload preferences for the new user. */
unset($GLOBALS['prefs']);
$injector->getInstance('Horde_Core_Factory_Prefs')->clearCache();
$this->loadPrefs($this->getApp());

$this->setLanguageEnvironment(isset($options['language']) ? $this->preferredLang($options['language']) : null, $app);
Expand Down

0 comments on commit ed273db

Please sign in to comment.