-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
2.2.1
After a spate of users who failed to click the 'Save Changes' button when uploading coursework, we've had to delve into the database to determine whether each user in question uploaded a file on the assignment page.
Alas, most of these didn't notice that they hadn't got a grade until around about 30 days what with the joys of Christmas, etc. As a result, we've resorted to restoring database backups to determine whether the user had uploaded files.
Because of all of this, we've followed the advice in lib/filestorage/file_storage.php's file_storage::cron() function to set:
// if you want to disable purging of trash put $CFG->fileslastcleanup=time(); into config.php
|
However, it would be useful to be able to override the default age before removal. At present, this is hardcoded to four days.
I propose making it possible to set this (probably though config.php rather than in the UI) to allow us to keep drafts for longer but still ultimately purge them. This won't affect most users, but will ensure that those of us who have the misfortune to investigate these kinds of things don't have quite such a hard time.