FIX: Don't use a process cache in development mode
This commit is contained in:
parent
fb241a4351
commit
4090ed226a
|
@ -10,6 +10,7 @@ class DiscourseStylesheets
|
|||
@lock = Mutex.new
|
||||
|
||||
def self.cache
|
||||
return {} if Rails.env.development?
|
||||
@cache ||= DistributedCache.new("discourse_stylesheet")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue