reduce amount of cache setting

This commit is contained in:
Sam 2016-07-28 10:20:29 +10:00
parent 83f80341b3
commit 0ba8da9658
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class Developer < ActiveRecord::Base
@id_cache = DistributedCache.new('developer_ids') @id_cache = DistributedCache.new('developer_ids')
def self.user_ids def self.user_ids
@id_cache["ids"] ||= rebuild_cache @id_cache["ids"] || rebuild_cache
end end
def self.rebuild_cache def self.rebuild_cache