clear memory cache for instances statistics when appropriate

Add a loading state to buttons InstanceView

Automatically refresh DashboardView data

Fixes #1915
This commit is contained in:
Massedil
2025-12-17 14:15:19 +01:00
parent 33e0d13b4e
commit 2c0adc8670
5 changed files with 102 additions and 68 deletions

View File

@@ -20,6 +20,10 @@ defmodule Mobilizon.Service.Statistics do
end
end
def clear_cached_value(key) do
Cachex.del(:statistics, key)
end
defp create_cache(:local_users) do
Users.count_users()
end