mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-01 09:39:59 +08:00
fix: update snapshot caching to store the entire snapshot object instead of its model dump
This commit is contained in:
@@ -425,7 +425,7 @@ class PluginSnapshotService:
|
||||
await CacheRoot.set(
|
||||
CacheType.PLUGIN_SNAPSHOT,
|
||||
cache_key,
|
||||
snapshot.model_dump(),
|
||||
snapshot,
|
||||
expire=PLUGIN_REDIS_TTL,
|
||||
)
|
||||
except Exception:
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user