possible fix for #1248
This commit is contained in:
@@ -5,7 +5,7 @@ class DailyMaintenance
|
|||||||
TagPruner.new.prune!
|
TagPruner.new.prune!
|
||||||
Upload.delete_all(['created_at < ?', 1.day.ago])
|
Upload.delete_all(['created_at < ?', 1.day.ago])
|
||||||
ModAction.delete_all(['created_at < ?', 3.days.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])
|
PostVote.delete_all(['created_at < ?', 1.month.ago])
|
||||||
TagSubscription.process_all
|
TagSubscription.process_all
|
||||||
prune_ad_hits
|
prune_ad_hits
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class TagPruner
|
class TagPruner
|
||||||
def prune!
|
def prune!
|
||||||
Tag.without_timeout do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user