diff --git a/Gemfile.lock b/Gemfile.lock index eba84349..ca441145 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,7 +7,7 @@ GIT PATH remote: . specs: - compass (0.11.beta.4.a2200b1) + compass (0.11.beta.4.b0bfb63) chunky_png (~> 1.1.0) sass (>= 3.1.0.alpha.249) diff --git a/lib/compass/sass_extensions/sprites/sprites.rb b/lib/compass/sass_extensions/sprites/sprites.rb index d93426fe..c32ae4fc 100644 --- a/lib/compass/sass_extensions/sprites/sprites.rb +++ b/lib/compass/sass_extensions/sprites/sprites.rb @@ -1,7 +1,6 @@ module Compass class Sprites < Sass::Importers::Base attr_accessor :name, :path - @maps = {} def self.path_and_name(uri) if uri =~ %r{((.+/)?(.+))/(.+?)\.png} @@ -18,8 +17,9 @@ module Compass end def self.load_map(uri, options) - key = self.key(uri, options) - @maps[key] ||= SpriteMap.new(uri, options) + Compass.quick_cache("spritemap:#{uri}", 50) do + SpriteMap.new(uri, options) + end end