MDL-61028 search: Clear search engine users cache after tests

This commit is contained in:
David Monllao 2018-04-24 15:36:27 +02:00
parent acaeb5ec41
commit 26b86f31e5
2 changed files with 10 additions and 0 deletions

View File

@ -139,6 +139,15 @@ abstract class engine {
return self::$cachedusers[$userid];
}
/**
* Clears the users cache.
*
* @return null
*/
public static function clear_users_cache() {
self::$cachedusers = [];
}
/**
* Returns a search instance of the specified area checking internal caching.
*

View File

@ -371,6 +371,7 @@ class manager {
static::$instance = null;
base_block::clear_static();
engine::clear_users_cache();
}
/**