Skip to content

Commit

Permalink
MDL-43511 do not cache the MUC cache in question code
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak authored and Damyon Wiese committed Jan 14, 2014
1 parent a27a965 commit 87b2e5e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions question/engine/bank.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,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.
*/
Expand All @@ -457,10 +454,8 @@ public static function get_instance_for_cache(cache_definition $definition) {
* @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');
}

/**
Expand Down

0 comments on commit 87b2e5e

Please sign in to comment.