lib/caddy/cache.rb in caddy-1.5.2 vs lib/caddy/cache.rb in caddy-1.5.3
- old
+ new
@@ -40,14 +40,11 @@
@task = Concurrent::TimerTask.new(
run_now: true,
execution_interval: interval,
timeout_interval: timeout_interval
) do
- begin
- @cache = refresher.call.freeze
- rescue
- raise
- end
+ @cache = refresher.call.freeze
+ nil # no need to save the value internally to TimerTask
end
@task.add_observer(Caddy::TaskObserver.new(error_handler, @key))
@task.execute