lib/routemaster/jobs/cache_and_sweep.rb in routemaster-drain-1.0.5 vs lib/routemaster/jobs/cache_and_sweep.rb in routemaster-drain-1.1.0

- old
+ new

@@ -4,10 +4,10 @@ module Routemaster module Jobs # Caches a URL using {Cache}, and sweeps the dirty map # if sucessful. class CacheAndSweep - def self.perform(url) + def perform(url) Dirty::Map.new.sweep_one(url) do Cache.new.get(url) end end end