mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-65050-master-fix' of git://github.com/lameze/moodle
This commit is contained in:
commit
878c88df95
@ -45,6 +45,8 @@ class question_preview_cleanup_task extends scheduled_task {
|
||||
* Throw exceptions on errors (the job will be retried).
|
||||
*/
|
||||
public function execute() {
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/question/engine/lib.php');
|
||||
|
||||
// We delete previews that have not been touched for 24 hours.
|
||||
$lastmodifiedcutoff = time() - DAYSECS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user