Quote:
Originally Posted by FractalizeR
Also, I don't see any attachment removing from these soft-deleted threads. It seems, like attachments will remain without thread, consuming space after their thread or post is removed...
|
That's not the only problem. If you soft delete a thread, the posts within it are still set to visible = 1 (i.e. aren't set to soft deleted), so when this cron comes along and removes the soft-deleted threads directly from the db, there are lots of posts that become orphaned (i.e. are attached to a thread that no longer exists)
What the mod needs to do is query through all the affected posts, attachments, polls(?) etc when deleting a thread and remove everything connected. Similarly it needs to examine attachments for posts.
There might be a data manager that can do it. Or just seek out the code that runs when a physical remove is done.
I applaud your making a mod VB Style, but it's gonna leave a lot of bad fragmented stuff on boards. With any software this complicated it's generally a bad idea to remove anything directly from the db, unless you know it's not connected to anything else.