Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
LiquidFractal Posted September 6, 2021 Posted September 6, 2021 I've been testing problems with my Downloads module over the past couple of weeks, and this involved uploading (and then deleting) several files ranging in size from 100-600MB. It was when I was backing up my site(s) that I noticed vastly inflated file sizes (when I know nothing major was going on). I went into the Moderator CP and made sure that any Deleted Content was deleted permanently before performing site backups. After some checking, I realised that some of these test files in fact haven't been deleted - they were still in the monthly uploads folders and had to be deleted manually. So two questions: Has anyone else had this problem? Could cron jobs have anything to do with this? For some reason I found my site's tasks were set to run with traffic, when they should have followed a cron job (this has since been fixed). Thanks in advance for any insights!
Solution Andy Millne Posted October 1, 2021 Solution Posted October 1, 2021 Downloads files are deleted immediately after the main file records are *permanently* deleted (not soft deleted). There are occasions where "unclaimed" files may remain however. For example, if you upload a file on the submission form and delete it or upload without submitting the form then these will be retained in case the user returns to submit later. Those temporary files are deleted via a task after one day so if your tasks weren't running or you took your backup during that 1 day period then it would explain why you may have had some redundant files. I hope that helps. Charles and LiquidFractal 1 1
LiquidFractal Posted October 1, 2021 Author Posted October 1, 2021 Thanks @Andy Millne! I've run so many tests lately that this probably escaped me.
SecondSight Posted October 2, 2021 Posted October 2, 2021 On 9/6/2021 at 5:53 AM, LiquidFractal said: Has anyone else had this problem? I'm also wondering about this but got no answer so far : https://invisioncommunity.com/forums/topic/461617-how-can-i-check-if-images-posted-in-a-topic-are-deleted/?tab=comments#comment-2853615
Marc Posted October 4, 2021 Posted October 4, 2021 On 10/2/2021 at 10:23 AM, SecondSight said: I'm also wondering about this but got no answer so far : https://invisioncommunity.com/forums/topic/461617-how-can-i-check-if-images-posted-in-a-topic-are-deleted/?tab=comments#comment-2853615 This was actually responded to in the message above by my colleague. At the time you posted there, we did not officially provide support via the community. However it does seem it was missed there. I will respond to that now for you so we can get it sorted
Recommended Posts