From 9074566c1d5f3f39af06d9256600fa33682cabee Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Mon, 5 Sep 2016 10:18:19 +0800 Subject: [PATCH] MDL-55610 behat: Clear static file cache php file cache might be out-of-sync to ensure full directory is deleted clear php file cache --- lib/moodlelib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index b8f141be875..0a030ad0d08 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.