fix broken instance cache on misses

main
Tao Bojlén 2023-06-10 14:56:40 +01:00
rodzic 01ff551516
commit ca831b3831
2 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -90,10 +90,6 @@ config :backend, Backend.Scheduler,
{"0 */3 * * *", {Backend.Scheduler, :check_for_spam_instances, []}}
]
config :phoenix, :template_engines,
eex: Appsignal.Phoenix.Template.EExEngine,
exs: Appsignal.Phoenix.Template.ExsEngine
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"

Wyświetl plik

@ -83,6 +83,7 @@ defmodule Graph.Cache do
# Cache for five minutes
Cache.put(key, crawl, ttl: 300)
crawl
data ->
Appsignal.increment_counter("most_recent_crawl_cache.hits", 1)