Merge branch 'mucupdates27' of https://github.com/skodak/moodle

This commit is contained in:
Marina Glancy
2013-12-12 15:39:14 +11:00
+6
View File
@@ -288,6 +288,12 @@ class checker {
set_config('recentfetch', time(), 'core_plugin');
set_config('recentresponse', $response, 'core_plugin');
if (defined('CACHE_DISABLE_ALL') and CACHE_DISABLE_ALL) {
// Very nasty hack to work around cache coherency issues on admin/index.php?cache=0 page,
// we definitely need to keep caches in sync when writing into DB at all times!
\cache_helper::purge_all(true);
}
$this->restore_response(true);
}