-
Bug
-
Resolution: Not a bug
-
Trivial
-
None
-
2.7.7, 2.8, 2.9
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
- Run unit tests.
As reported by plushwork on IRC, get_all_versions_hash() sets a boolean for $usecache which determine whether to use MUC when fetching the list of plugins in a plugintype, however it seems to be reversed:
$usecache = false;
|
if (CACHE_DISABLE_ALL or (defined('IGNORE_COMPONENT_CACHE') and IGNORE_COMPONENT_CACHE)) {
|
$usecache = true;
|
}
|
// ...
|
if ($usecache) {
|
$plugs = core_component::get_plugin_list($type);
|
} else {
|
$plugs = self::fetch_plugins($type, $typedir);
|
}
|
From my reading of this, we do not use the cache unless:
- CACHE_DISABLE_ALL is defined; or
- IGNORE_COMPONENT_CACHE is defined and truthful.
Obviously those values suggest the opposite of the action.
- has a non-specific relationship to
-
MDL-42012 CACHE_DISABLE_ALL should not disable cache_data_sources
- Closed