diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 918d05c4cdb..93c1dba8f68 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -1617,6 +1617,7 @@ function purge_all_caches() { cache_helper::purge_all(); // Purge all other caches: rss, simplepie, etc. + clearstatcache(); remove_dir($CFG->cachedir.'', true); // Make sure cache dir is writable, throws exception if not.