mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-20 19:01:52 +08:00
Setup wizard and config reload now funnel through a single AppContext.reload_settings() entry point instead of mutating settings directly. Wrap remaining sync file I/O (image cache, settings load/save, log tail read) in asyncio.to_thread so async request handlers stop blocking the event loop. Add reset_cache() to each cache-owning parser/ searcher module (tmdb, mikan, title parser, poster cache) and wire them into reload_settings() so a base-URL/API-key config change invalidates stale cached results immediately. Fix BangumiDatabase.add_all's N+1 query by batching semantic-duplicate candidate lookups into one SELECT for the whole batch instead of one query per candidate. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GTnuEgR78cBk32bLNKar3z