Permalink
Browse files

make Storage#clear clear the tagstores as well

  • Loading branch information...
Sven Fuchs
Sven Fuchs committed Sep 14, 2009
1 parent dd1c6b0 commit c449b5da6c7eea8564e65a3f058080e90b0135a7
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/rack/cache/tags/storage.rb
@@ -1,4 +1,10 @@
Rack::Cache::Storage.class_eval do
+ alias :clear_without_tagstore :clear
+ def clear
+ @tagstores.clear
+ clear_without_tagstore
+ end
+
def resolve_tagstore_uri(uri)
@tagstores ||= {}
@tagstores[uri.to_s] ||= create_store(Rack::Cache::Tags::TagStore, uri)

0 comments on commit c449b5d

Please sign in to comment.