fix: remove lru_cache from meilisearch SDK factory to avoid stale client

This commit is contained in:
Tianyang 2026-08-01 19:04:17 +08:00
parent 0da48660f4
commit c8a27888f6

View File

@ -13,7 +13,6 @@ def _get_file_client() -> LocalFileClient:
return LocalFileClient(settings.storage_dir)
@lru_cache
def _get_meilisearch_sdk() -> meilisearch.Client:
return meilisearch.Client(settings.meilisearch_host, settings.meilisearch_api_key)