XF 2.2 How can I delete quickly all approval queue?

Dkf

Active member
There are more than thousand approval queue wait admin to approve in my forum.
How can I delete quickly all approval queue?
I want to use MySQL command to drop these data (delete). Can you guide me?

1664887854991.png
 
Solution
@Dkf, there can be not only posts in the approval queue, but also users, threads, etc. Please provide the result of this request to determine if there is anything other than posts:
SQL:
SELECT DISTINCT content_type FROM xf_approval_queue
In any case, you can clear the xf_approval_queue table to clear the approval queue:
SQL:
TRUNCATE xf_approval_queue
However, if there was something other than posts in the approval queue, additional manipulations may be required.
I used this command

mysql> UPDATE xf_post SET message_state = 'visible' WHERE message_state = 'moderated';
Query OK, 5544 rows affected (1 min 56,60 sec)
Rows matched: 5544 Changed: 5544 Warnings: 0


But the counter on the site has not changed. How to update it?
 
@Dkf, there can be not only posts in the approval queue, but also users, threads, etc. Please provide the result of this request to determine if there is anything other than posts:
SQL:
SELECT DISTINCT content_type FROM xf_approval_queue
In any case, you can clear the xf_approval_queue table to clear the approval queue:
SQL:
TRUNCATE xf_approval_queue
However, if there was something other than posts in the approval queue, additional manipulations may be required.
 
  • Like
Reactions: Dkf
Solution
Top Bottom