Skip to content

Commit

Permalink
MDL-23391 rss cache is now inside the dataroot/cache with the others,…
Browse files Browse the repository at this point in the history
… so it doesn't need separate purging
  • Loading branch information
moodler committed Jul 20, 2010
1 parent d4d1b04 commit dc2c9bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1073,14 +1073,12 @@ function get_users_from_config($value, $capability, $includeadmins = true) {
function purge_all_caches() {
global $CFG;

remove_dir("$CFG->dataroot/rss", true);

reset_text_filters_cache();
js_reset_all_caches();
theme_reset_all_caches();
get_string_manager()->reset_caches();

// purge all other caches: simplepie, etc.
// purge all other caches: rss, simplepie, etc.
remove_dir($CFG->dataroot.'/cache', true);

// some more diagnostics in case site is misconfigured
Expand Down

0 comments on commit dc2c9bd

Please sign in to comment.