Merge branch 'mdl-80917-main' of https://github.com/Fragonite/moodle

This commit is contained in:
Sara Arjona 2024-02-28 16:44:13 +01:00
commit a6b2aa021a
No known key found for this signature in database

View File

@ -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');
}