diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 593c964f296..fcb1e18f62e 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -1550,6 +1550,9 @@ function purge_all_caches() { cache_helper::purge_all(); + // Clear course cache for all courses. + rebuild_course_cache(0, true); + // purge all other caches: rss, simplepie, etc. remove_dir($CFG->cachedir.'', true);