Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make Storage#clear clear the tagstores as well

  • Loading branch information...
commit c449b5da6c7eea8564e65a3f058080e90b0135a7 1 parent dd1c6b0
@svenfuchs authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/rack/cache/tags/storage.rb
View
6 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)
Please sign in to comment.
Something went wrong with that request. Please try again.