~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
perf(auth): stop wiping ProviderModel cache on every login (#3484)
LearningCircuitb4517bd2735e
diff --git a/src/local_deep_research/web/auth/routes.py b/src/local_deep_research/web/auth/routes.pyindex ba8982b5dd..c0e9ec0070 100644--- a/src/local_deep_research/web/auth/routes.py+++ b/src/local_deep_research/web/auth/routes.py@@ -160,8 +160,8 @@ def login():# Defer non-critical post-login work to a background thread so the# redirect returns immediately (settings migration, library init,- # news scheduler, and model cache clearing are all idempotent and- # can safely run after the response).+ # news scheduler notify, and backup scheduling are all idempotent+ # and can safely run after the response).app_ctx = thread_context()thread = threading.Thread(target=thread_with_app_context(_perform_post_login_tasks),@@ -251,21 +251,10 @@ def _perform_post_login_tasks(username: str, password: str) -> None:except Exception:logger.exception(f"Post-login auth DB update failed for {username}")- # 4. Clear the model cache to ensure fresh provider data- try:- from ...database.models import ProviderModel-- with get_user_db_session(username, password) as user_db_session:- deleted_count = user_db_session.query(ProviderModel).delete()- user_db_session.commit()- logger.info(- f"Cleared {deleted_count} cached models "- f"for user {username} on login"- )- except Exception:- logger.exception(f"Post-login model cache clear failed for {username}")+ # Model cache refresh is handled by /api/settings/available-models+ # via its 24h TTL and explicit force_refresh=true flag.- # 5. Schedule background database backup if enabled+ # Schedule background database backup if enabledtry:from ...database.backup import get_backup_schedulerfrom ...settings.manager import SettingsManager