提交
This commit is contained in:
@@ -113,6 +113,9 @@ async def sync_symbol(
|
||||
)
|
||||
await session.execute(stmt)
|
||||
await session.commit()
|
||||
# 作废 candles 相关读缓存(preview 等)——不 bump 的话旧版本号的缓存要等 TTL 自然过期
|
||||
from .. import cache
|
||||
await cache.bump_version("candles")
|
||||
return {"symbol": code, "bars": len(bars), "source": used}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user