diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 47be98e..4c52cc1 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -1511,6 +1511,8 @@ function purge_all_caches() { // purge all other caches: rss, simplepie, etc. remove_dir($CFG->cachedir.'', true); + rebuild_course_cache(0,true); + // make sure cache dir is writable, throws exception if not make_cache_directory('');