refactor(model): Refactor plugin model schema cache to be process-global to prevent redundant Daemon API calls (#31689)

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
Nie Ronghua
2026-01-29 14:31:15 +08:00
committed by GitHub
parent dbfc47e8b0
commit ceb6914793
4 changed files with 111 additions and 52 deletions

View File

@ -243,6 +243,11 @@ class PluginConfig(BaseSettings):
default=15728640 * 12,
)
PLUGIN_MODEL_SCHEMA_CACHE_TTL: PositiveInt = Field(
description="TTL in seconds for caching plugin model schemas in Redis",
default=24 * 60 * 60,
)
class MarketplaceConfig(BaseSettings):
"""