Merge branch 'MDL-53543_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Dan Poltawski
2016-03-29 16:45:37 +08:00
2 changed files with 6 additions and 4 deletions
+5 -2
View File
@@ -271,10 +271,13 @@ $definitions = array(
'staticaccelerationsize' => 3
),
// Grade categories. Stored at request level as invalidation is very aggressive.
// Grade categories. Stored at session level as invalidation is very aggressive.
'grade_categories' => array(
'mode' => cache_store::MODE_REQUEST,
'mode' => cache_store::MODE_SESSION,
'simplekeys' => true,
'invalidationevents' => array(
'changesingradecategories',
)
),
// Store temporary tables information.
+1 -2
View File
@@ -2691,7 +2691,6 @@ class grade_category extends grade_object {
* @return void
*/
public static function clean_record_set() {
$cache = cache::make('core', 'grade_categories');
$cache->purge();
cache_helper::purge_by_event('changesingradecategories');
}
}