lib/routemaster/jobs/cache_and_sweep.rb in routemaster-drain-2.3.0 vs lib/routemaster/jobs/cache_and_sweep.rb in routemaster-drain-2.4.0
- old
+ new
@@ -7,11 +7,12 @@
# if sucessful.
class CacheAndSweep
def perform(url)
Dirty::Map.new.sweep_one(url) do
begin
- Cache.new.get(url)
+ Routemaster::Cache.new.get(url)
rescue Errors::ResourceNotFound
+ nil # nothing to cache
end
end
end
end
end