MDL-80187 core_courseformat: format action classes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user