lib/nitro/caching/fragments.rb in nitro-0.29.0 vs lib/nitro/caching/fragments.rb in nitro-0.30.0

- old
+ new

@@ -15,17 +15,10 @@ module Fragments # The cache used to store the fragments. - setting :cache, :default => nil, :doc => 'The cache used to store the fragments' - - #-- - # gmosx, FIXME: this is a hack, improve setting - # implementation. - #++ - - @@cache = Glue::MemoryCache.new + setting :cache, :default => Glue::MemoryCache.new, :doc => 'The cache used to store the fragments' def self.get(name, options = {}) return @@cache.get(name, options) end