Track both content and cache size

This commit is contained in:
Claudio Ortolina
2025-09-20 09:49:06 +03:00
parent 68a2159d7d
commit dd09fb907b
4 changed files with 31 additions and 12 deletions
-8
View File
@@ -23,14 +23,6 @@ defmodule MusicLibrary.Assets.Cache do
)
end
def track_total_content_size do
:telemetry.execute(
[:music_library, :assets, :cache],
%{total_content_size: total_content_size()},
%{}
)
end
def prune(older_than_seconds) do
threshold =
DateTime.utc_now()