Revert "MDL-35131 Caching: Purge all will clear course modinfo cache - Thanks to Thomas for patch"

This reverts commit 6ab62db65c.

This is breaking upgrades from 22 - purgeallcaches gets called during upgrade but
rebuild_course_caches is not a safe api to use in this case.
This commit is contained in:
Damyon Wiese
2013-07-15 21:24:07 +08:00
parent 73221dbdfe
commit 7ce7bb538c
-3
View File
@@ -1551,9 +1551,6 @@ 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);