fixes for tag subs

This commit is contained in:
albert
2013-04-03 14:36:28 -04:00
parent 786655ae39
commit 3a96bb0811
4 changed files with 3 additions and 6 deletions

View File

@@ -82,6 +82,6 @@ class Cache
end
def self.sanitize(key)
key.gsub(/\W/) {|x| "%#{x.ord}"}.slice(0, 240)
key.gsub(/\W/) {|x| "%#{x.ord}"}.slice(0, 230)
end
end

View File

@@ -5,6 +5,7 @@ class DailyMaintenance
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)
TagSubscription.process_all
prune_ad_hits
end