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
This commit is contained in:
Rajesh Taneja
2016-09-06 09:43:54 +08:00
parent c265709cab
commit b7fc4a06f1
+1
View File
@@ -1621,6 +1621,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.