FIX: Don't use a process cache in development mode

This commit is contained in:
Robin Ward 2014-11-12 13:51:16 -05:00
parent fb241a4351
commit 4090ed226a

View file

@ -10,6 +10,7 @@ class DiscourseStylesheets
@lock = Mutex.new
def self.cache
return {} if Rails.env.development?
@cache ||= DistributedCache.new("discourse_stylesheet")
end