From d817c30d4637e972ef697829bacaf7fe15ccbb5c Mon Sep 17 00:00:00 2001 From: danilo silva Date: Sun, 7 Jun 2020 21:10:40 +0000 Subject: [PATCH] fetch data before reload --- lib/podcast_feed/boundary/archive_server.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/podcast_feed/boundary/archive_server.ex b/lib/podcast_feed/boundary/archive_server.ex index 1abd840..f4820ab 100644 --- a/lib/podcast_feed/boundary/archive_server.ex +++ b/lib/podcast_feed/boundary/archive_server.ex @@ -31,6 +31,7 @@ defmodule PodcastFeed.Boundary.ArchiveServer do end def reload(identifier) do + cache_or_fetch(identifier) GenServer.call(via(identifier), :reload) end