MDL-80187 core_courseformat: format action classes

This commit is contained in:
Ferran Recio
2024-01-17 10:39:12 +01:00
parent 580c009cac
commit 141568c30d
14 changed files with 718 additions and 1 deletions
+10
View File
@@ -238,6 +238,16 @@ $definitions = array(
'simplekeys' => true,
'simpledata' => true,
],
// Course actions instances cache.
'courseactionsinstances' => [
'mode' => cache_store::MODE_REQUEST,
'simplekeys' => true,
'simpledata' => false,
'staticacceleration' => true,
// Executing actions in more than 10 courses usually means executing the same action on each course
// so there is no need for caching individual course instances.
'staticaccelerationsize' => 10,
],
// Used to store data for repositories to avoid repetitive DB queries within one request.
'repositories' => array(
'mode' => cache_store::MODE_REQUEST,