mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-42973 fix MUC caching issue when fetching available updates
This commit is contained in:
parent
623d49dde4
commit
cac367e4a4
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue