mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-61028 search: Clear search engine users cache after tests
This commit is contained in:
parent
acaeb5ec41
commit
26b86f31e5
@ -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.
|
||||
*
|
||||
|
@ -371,6 +371,7 @@ class manager {
|
||||
static::$instance = null;
|
||||
|
||||
base_block::clear_static();
|
||||
engine::clear_users_cache();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user