Alain Raap tarafından yapılan gönderiler

Hi Ken, thanks for the tip, only the task is running more than 1 hour and then it stops with this error.
Probably it has a relation with this bug https://tracker.moodle.org/browse/MDL-79017 in Moodle 4.1.5
In Moodle 4.1.5 I activated the task again and now it fails with this error. I thought the empty array problem was fixed in the past?

Scheduled task failed: Vraagstatistieken opnieuw berekenen (quiz_statistics\task\recalculate),Fout in de programmeercode gevonden. Dit moet door een programmeur hersteld worden. moodle_database::get_in_or_equal() does not accept empty arrays
Backtrace:
* line 564 of /question/engine/datalib.php: call to moodle_database->get_in_or_equal()
* line 295 of /question/classes/statistics/questions/calculator.php: call to question_engine_data_mapper->load_questions_usages_latest_steps()
* line 96 of /question/classes/statistics/questions/calculator.php: call to core_question\statistics\questions\calculator->get_latest_steps()
* line 660 of /mod/quiz/report/statistics/report.php: call to core_question\statistics\questions\calculator->calculate()
* line 950 of /mod/quiz/report/statistics/report.php: call to quiz_statistics_report->get_all_stats_and_analysis()
* line 108 of /mod/quiz/report/statistics/classes/task/recalculate.php: call to quiz_statistics_report->calculate_questions_stats_for_question_bank()
* line 263 of /lib/cronlib.php: call to quiz_statistics\task\recalculate->execute()
* line 120 of /lib/cronlib.php: call to cron_run_inner_scheduled_task()
* line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
* line 178 of /admin/cli/cron.php: call to cron_run()

And another task that fails because of this problem, a course that contains a file with a ";" in the filename causes the same error when the course is deleted by a teacher or admin. The course can't be deleted.
I added another problem in the tracker, it seems that the file_trash_cleanup_task is having problems with the same ';' issue in the filename. Is it safe to remove the ';' in all the filenames before Moodle 4.1.6 is published? I tried the hotfix for several files in a course that caused the filereference problem, but I had to save the files itself again in the elements of the course, because else the error persisted. Also the file_trash_cleanup_task is failing since two days, so the trashcan is growing.

Moodle in English -> General help -> Cleaning up Redis cache cron task question

yazan Alain Raap -
I have two Redis caching instances, one for MUC (port 6379) and one for PHP sessions (port 6380). When this task runs, it seems that only the expired MUC keys are deleted, the PHP session keys only keep growing in time. How does the code look at the Redis caching configuration when deleting the expired keys?