Last active
July 20, 2018 11:55
-
-
Save luukverhoeven/e3283ada322db9040c04fa9ab757f3c2 to your computer and use it in GitHub Desktop.
Moodle CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Moodle CLI help | |
# Clear cache from Cli | |
sudo -u www-data php admin/cli/purge_caches.php | |
# Upgrade from CLI | |
sudo -u www-data php admin/cli/upgrade.php --non-interactive | |
# Run cron | |
sudo -u www-data php admin/cli/cron.php | |
# Run task | |
sudo -u www-data php admin/tool/task/cli/schedule_task.php --execute=\\block_dshop\\task\\classname | |
# List all task | |
sudo -u www-data php admin/tool/task/cli/schedule_task.php --list | |
# Search a task | |
sudo -u www-data php admin/tool/task/cli/schedule_task.php --list | grep lti | |
# Flush cache every 5 seconds | |
while sleep 5; do php admin/cli/purge_caches.php; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment