|
Which one is better:
1) Delete the files at the time the context is deleted I'm tending towards (2) simply because it fixes any cases where things get out of sync, and also allows context deletions to proceed quite fast. Sam, can you implement the cron solution in head? It would just be a small bit of code in admin/cron.php to call a function in filelib.php.
Hi guys,
I have attached a patch that cleans up files that are associated with a context that no longer exists. Could you please have a look at it and let me know what you think, I'm not sure this is the best way around the task as it essentially requires the a file have a reference to a contextid that does not exist? Cheers Sam Will commit this on Wednesday as it is QA day today
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Could you please have a quick check and if it's ok either commit it yourself or let me know and I'll check it in.
Cheers
Sam