From ca831b3831c7280c6de5c6cffa0a7011f3c8867c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tao=20Bojl=C3=A9n?= <66130243+taobojlen@users.noreply.github.com> Date: Sat, 10 Jun 2023 14:56:40 +0100 Subject: [PATCH] fix broken instance cache on misses --- backend/config/config.exs | 4 ---- backend/lib/graph/cache.ex | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/config/config.exs b/backend/config/config.exs index d652545..dbb28ec 100644 --- a/backend/config/config.exs +++ b/backend/config/config.exs @@ -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" diff --git a/backend/lib/graph/cache.ex b/backend/lib/graph/cache.ex index cea853a..b28fb97 100644 --- a/backend/lib/graph/cache.ex +++ b/backend/lib/graph/cache.ex @@ -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)