mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:37:55 +08:00
reduce amount of cache setting
This commit is contained in:
parent
83f80341b3
commit
0ba8da9658
|
@ -9,7 +9,7 @@ class Developer < ActiveRecord::Base
|
|||
@id_cache = DistributedCache.new('developer_ids')
|
||||
|
||||
def self.user_ids
|
||||
@id_cache["ids"] ||= rebuild_cache
|
||||
@id_cache["ids"] || rebuild_cache
|
||||
end
|
||||
|
||||
def self.rebuild_cache
|
||||
|
|
Loading…
Reference in New Issue
Block a user