mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 03:17:24 +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…
x
Reference in New Issue
Block a user