ai查询客流的缓存改为了1分钟

main
zc 2 months ago
parent 03ae7517e7
commit 8f18d2674a
  1. 2
      app/api/chat/ai/chat_service.py

@ -386,7 +386,7 @@ async def query_flow(request: Request, spot: str) -> str:
result += f"注:全部内容输出完以后,最后输出一段固定内容,内容为:<hr class=\"keliu\" data-id=\"{scenic_id}\"/>;"
try:
await redis_client.setex(cache_key, 120, result)
await redis_client.setex(cache_key, 60, result)
except Exception as e:
print(f"[Redis] 写缓存失败: {e}")

Loading…
Cancel
Save