lib/smoke/cache.rb in benschwarz-smoke-0.5.10 vs lib/smoke/cache.rb in benschwarz-smoke-0.5.13
- old
+ new
@@ -15,9 +15,14 @@
end
def enabled?
Smoke.config[:cache][:enabled]
end
+
+ # Clear all your request caches
+ def clear!
+ cache.clear
+ end
protected
def cache
Moneta.autoload(klass_name.to_sym, file_name)
@@cache ||= Moneta.const_get(klass_name).new(Smoke.config[:cache][:options])
\ No newline at end of file