Browse Source

fetch data before reload

danilo silva 3 years ago
parent
commit
d817c30d46
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/podcast_feed/boundary/archive_server.ex

+ 1 - 0
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