MDL-40759 fontawesome: Use a cache

Cache the callback info.
This commit is contained in:
Damyon Wiese 2017-03-21 10:31:22 +08:00
parent 2154c9824d
commit 7e8940b544
4 changed files with 26 additions and 8 deletions

View file

@ -309,4 +309,14 @@ $definitions = array(
'simplevalues' => true,
'datasource' => '\core_message\time_last_message_between_users',
),
// Caches font awesome icons.
'fontawesomeiconmapping' => array(
'mode' => cache_store::MODE_APPLICATION,
'simplekeys' => true,
'simpledata' => true,
'staticacceleration' => true,
'staticaccelerationsize' => 1
),
);