2013-01-08 04:36:50 +00:00
|
|
|
class UpdateTagCloud
|
|
|
|
@queue = :high
|
|
|
|
|
|
|
|
def self.perform()
|
|
|
|
Tag.all.each do |tag|
|
|
|
|
tag.update_attribute(:cloud_view_count, tag.impressionist_count(:created_at.gte => 14.days.ago, :created_at.lte => Time.now))
|
|
|
|
end
|
2013-05-14 02:29:11 +00:00
|
|
|
OrbitLogger.info "UpdateTagCloud Done"
|
2013-01-08 04:36:50 +00:00
|
|
|
end
|
|
|
|
end
|