Blog101.9K views4,765 votes0 replies1,936 following
Creating a Custom Scheduled Task in Moodle to Clean Up Old Log Entries
Learn how to create a Moodle scheduled task that runs periodic PHP code, with a concrete example for cleaning up old log entries, testing via CLI, and verification steps.