Skip to content

Commit

Permalink
Revert "MDL-35131 Caching: Purge all will clear course modinfo cache …
Browse files Browse the repository at this point in the history
…- Thanks to Thomas for patch"

This reverts commit 6ab62db.

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.
  • Loading branch information
Damyon Wiese committed Jul 15, 2013
1 parent 73221db commit 7ce7bb5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/moodlelib.php
Expand Up @@ -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);

Expand Down

0 comments on commit 7ce7bb5

Please sign in to comment.