lib/routemaster/jobs/cache_and_sweep.rb in routemaster-drain-2.5.0 vs lib/routemaster/jobs/cache_and_sweep.rb in routemaster-drain-2.5.1
- old
+ new
@@ -9,10 +9,10 @@
def perform(url)
Dirty::Map.new.sweep_one(url) do
begin
Routemaster::Cache.new.get(url)
rescue Errors::ResourceNotFound
- nil # nothing to cache
+ true # nothing to cache, remove the element from dirty
end
end
end
end
end