possible fix for #1248

This commit is contained in:
Toks
2013-04-13 23:26:52 -04:00
parent 32adfd5d0a
commit 592741da7b
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ class DailyMaintenance
TagPruner.new.prune!
Upload.delete_all(['created_at < ?', 1.day.ago])
ModAction.delete_all(['created_at < ?', 3.days.ago])
Delayed::Job.delete_all(['created_at < ?'], 1.day.ago)
Delayed::Job.delete_all(['created_at < ?', 1.day.ago])
PostVote.delete_all(['created_at < ?', 1.month.ago])
TagSubscription.process_all
prune_ad_hits

View File

@@ -1,7 +1,7 @@
class TagPruner
def prune!
Tag.without_timeout do
Tag.destroy_all(["post_count <= 0 and name like '%:%'"])
Tag.destroy_all(["post_count <= 0 and name like '%%:%%'"])
end
end
end