2010-08-26, 02:05 PM
thanks for the update of the script. i did not consider the ratings, redirects and subscriptions as much of an issue, but i do see how we might as well clean it all.
DELETE FROM `mybb_privatemessages` WHERE `subject` LIKE '%[Notification]%'
(2010-08-26, 02:05 PM)pavemen Wrote: [ -> ]i did not consider the ratings, redirects and subscriptions as much of an issue.
(2010-08-26, 03:23 PM)pavemen Wrote: [ -> ]this autoexpunge plugin created a lot of problems
remove_attachments($pid);
update_thread_counters($post['tid'], $update_array);
update_forum_counters($post['fid'], $update_array);
(2010-08-26, 07:21 PM)asmile Wrote: [ -> ]
2 FBI, if you still cleaning, I found one 'dirty' way how to significantly speed up work of cleaning script:
before next "next set" clicking
1. find function delete_post in inc/class_moderation.php, comment out calls
remove_attachments($pid); update_thread_counters($post['tid'], $update_array); update_forum_counters($post['fid'], $update_array);
2. do several cleaning cycles (3-5, maybe 10, it depends on how heavily attachments used in you forum)
then go to "Admin CP / Forums & Posts / Attachments / Find Orphaned Attachments" and delete them.
and again, again, again.
3. after script is finished, uncomment commented calls.
4. again delete orphaned attachments
5. recount counters in Admin CP
that works much faster.
Quote:9900 posts deleted
10000 posts deleted
cleaning redirects...
Next set