Merge branch 'MDL-80985-add-purge-course-caches-option-main' of https://github.com/jwcatau/moodle

This commit is contained in:
Andrew Nicols 2024-04-11 10:41:13 +08:00
commit 5c16854483
No known key found for this signature in database
GPG key ID: 6D1E3157C8CFBF14
4 changed files with 204 additions and 1 deletions

View file

@ -31,6 +31,7 @@ require_once($CFG->libdir.'/clilib.php');
$longoptions = [
'help' => false,
'muc' => false,
'courses' => false,
'theme' => false,
'lang' => false,
'js' => false,
@ -55,6 +56,8 @@ all caches will be purged.
Options:
-h, --help Print out this help
--muc Purge all MUC caches (includes lang cache)
--courses Purge all course caches (or only those specified by a comma-separated list).
e.g. --courses=4,67,145
--theme Purge theme cache
--lang Purge language string cache
--js Purge JavaScript cache