From 7ce7bb538c8d36f60e3d17fb7a573a03b6043b14 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 15 Jul 2013 21:22:20 +0800 Subject: [PATCH] Revert "MDL-35131 Caching: Purge all will clear course modinfo cache - Thanks to Thomas for patch" This reverts commit 6ab62db65ca1719acdbf13d74756d20dbd987d1b. 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. --- lib/moodlelib.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index cbcdef58079..cc6faf0d93a 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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);