mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-06 04:10:02 +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(
|
await CacheRoot.set(
|
||||||
CacheType.PLUGIN_SNAPSHOT,
|
CacheType.PLUGIN_SNAPSHOT,
|
||||||
cache_key,
|
cache_key,
|
||||||
snapshot.model_dump(),
|
snapshot,
|
||||||
expire=PLUGIN_REDIS_TTL,
|
expire=PLUGIN_REDIS_TTL,
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ async def _():
|
|||||||
_client = get_async_client(
|
_client = get_async_client(
|
||||||
headers=get_user_agent(),
|
headers=get_user_agent(),
|
||||||
follow_redirects=True,
|
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),
|
timeout=httpx.Timeout(10),
|
||||||
**client_kwargs,
|
**client_kwargs,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user