mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 21:54:46 +08:00
FIX: Don't use a process cache in development mode
This commit is contained in:
@ -10,6 +10,7 @@ class DiscourseStylesheets
|
|||||||
@lock = Mutex.new
|
@lock = Mutex.new
|
||||||
|
|
||||||
def self.cache
|
def self.cache
|
||||||
|
return {} if Rails.env.development?
|
||||||
@cache ||= DistributedCache.new("discourse_stylesheet")
|
@cache ||= DistributedCache.new("discourse_stylesheet")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user