misc: Move cache initialization to startup script

Guarantee that cache is initialized during startup, and only once,
instead of every time a `MetadataHandler` object is instantiated.

Also, improve logic to determine `fixtures` paths.
This commit is contained in:
Michael Manganiello
2025-08-13 12:26:15 -03:00
parent 57e9a9f0fd
commit 80291f4be1
7 changed files with 125 additions and 101 deletions

View File

@@ -284,6 +284,7 @@ else
error_log "Failed to run database migrations"
fi
# Startup process requires database and cache to be already available
run_startup
# main loop