-
Sub-task
-
Resolution: Duplicate
-
Minor
-
None
-
2.1
-
MOODLE_21_STABLE
context caching can be improved:
1/ improve performance by half - using foreach($array) instead of repeated use of reset($array)
2/ remove drift by using isset()
3/ we could keep the first 100 contexts in cache because hopefully those are related to current cache
4/ we could allow admins and devs to override the cache size in config.php or before inclusion of config.php (such as in cron)