Skip to content

Commit

Permalink
[jan] Fix using ingo-convert-prefs-to-sql for multiple users.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Aug 11, 2016
1 parent d5ec292 commit 7feaf61
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ingo/bin/ingo-convert-prefs-to-sql
Expand Up @@ -49,6 +49,8 @@ while (!feof(STDIN)) {

echo 'Converting filters for user: ' . $user;

$prefs_storage->clearCache();
$sql_storage->clearCache();
$registry->setAuth($user, array());
$session->set('ingo', 'current_share', ':' . $user);

Expand Down
9 changes: 9 additions & 0 deletions ingo/lib/Storage.php
Expand Up @@ -399,4 +399,13 @@ public function getIterator()
return new ArrayIterator($this->_rules);
}

/**
* Clears the internal rule cache.
*
* @since Ingo 3.2.12
*/
public function clearCache()
{
$this->_cache = array();
}
}
3 changes: 3 additions & 0 deletions ingo/package.xml
Expand Up @@ -1716,6 +1716,9 @@
<date>2016-07-01</date>
<license uri="http://www.horde.org/licenses/apache">ASL</license>
<notes>
* [jan] Fix using ingo-convert-prefs-to-sql for multiple users.
* [mjr] Fix incorrect flag usage in Procmail vacation recipe (Bug #14397).
* [mjr] Fix escaping mailbox names that contain utf7-imap encodings (Bug #14429).
* [jan] Fix creating new spam folders.
</notes>
</release>
Expand Down

0 comments on commit 7feaf61

Please sign in to comment.