mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-43511 do not cache the MUC cache in question code
This commit is contained in:
parent
12efa52762
commit
c0fa7b0d93
@ -439,9 +439,6 @@ class question_finder implements cache_data_source {
|
||||
/** @var question_finder the singleton instance of this class. */
|
||||
protected static $questionfinder = null;
|
||||
|
||||
/** @var cache the question definition cache. */
|
||||
protected $cache = null;
|
||||
|
||||
/**
|
||||
* @return question_finder a question finder.
|
||||
*/
|
||||
@ -461,10 +458,8 @@ class question_finder implements cache_data_source {
|
||||
* @return get the question definition cache we are using.
|
||||
*/
|
||||
protected function get_data_cache() {
|
||||
if ($this->cache == null) {
|
||||
$this->cache = cache::make('core', 'questiondata');
|
||||
}
|
||||
return $this->cache;
|
||||
// Do not double cache here because it may break cache resetting.
|
||||
return cache::make('core', 'questiondata');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user