mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
reduce amount of cache setting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user