fix: update snapshot caching to store the entire snapshot object instead of its model dump

This commit is contained in:
HibiKier
2025-12-31 09:23:51 +08:00
parent 46a924ca46
commit 4a103f5675
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ class PluginSnapshotService:
await CacheRoot.set(
CacheType.PLUGIN_SNAPSHOT,
cache_key,
snapshot.model_dump(),
snapshot,
expire=PLUGIN_REDIS_TTL,
)
except Exception:
+1 -1
View File
@@ -64,7 +64,7 @@ async def _():
_client = get_async_client(
headers=get_user_agent(),
follow_redirects=True,
limits=httpx.Limits(max_connections=200, max_keepalive_connections=100),
limits=httpx.Limits(max_connections=500, max_keepalive_connections=200),
timeout=httpx.Timeout(10),
**client_kwargs,
)