mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'mdl-80917-main' of https://github.com/Fragonite/moodle
This commit is contained in:
commit
a6b2aa021a
@ -26,6 +26,7 @@
|
||||
namespace core\task;
|
||||
|
||||
use async_helper;
|
||||
use cache_helper;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
@ -207,6 +208,9 @@ class asynchronous_copy_task extends adhoc_task {
|
||||
fulldelete($backupbasepath);
|
||||
}
|
||||
|
||||
rebuild_course_cache($restorerecord->itemid, true);
|
||||
cache_helper::purge_by_event('changesincourse');
|
||||
|
||||
$duration = time() - $started;
|
||||
mtrace('Course copy: Copy completed in: ' . $duration . ' seconds');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user