kopia lustrzana https://github.com/fediversespace/fediverse.space
fix broken instance cache on misses
rodzic
01ff551516
commit
ca831b3831
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue