#5638 Run `manage.py delete_unused_tags` periodically on ask.fpo
Closed: Will Not/Can Not fix 6 years ago Opened 7 years ago by mattdm.

We've got a bunch of spam tags (like "love", and ... worse) left over from a spam attack which is now under control via moderation. The posts are gone, but the tags linger.

From the docs, I think maybe we need to be running manage.py delete_unused_tags periodically — nightly, perhaps, or at least weekly.

Thanks!


We are. ;(

roles/ask/files/cron-delete-unused-tags:0 22 * * * root /usr/bin/python /etc/askbot/sites/ask/config/manage.py delete_unused_tags > /dev/null 2> /dev/null

I can run it manually and see if there are any error(s).

Searching for unused tags:
------------------------------------------------------------ 100.00%
Did not find any.

So, perhaps those tags are still on posts?

Maybe indexed somewhere internally...

https://ask.fedoraproject.org/en/questions/scope:all/sort:activity-desc/tags:love/page:1/

appears empty even when viewed as a logged-in admin account

All of the tags are a mess, because zero reputation users can create new ones at will. :(

So, where does that leave us here? I guess we could try manually removing tags? Or ask upstream why delete_unused_tags might not be working?

:grey_question:

I guess I'll close this for now.

If someone wants to persue this with upstream, please feel free to do so.

:briefcase:

Metadata Update from @kevin:
- Issue close_status updated to: Will Not/Can Not fix
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata