ZHIWEI666 commited on
Commit
9540e7b
·
verified ·
1 Parent(s): 22f6dbb

Upload router_items.py

Browse files
Files changed (1) hide show
  1. router_items.py +2 -1
router_items.py CHANGED
@@ -301,8 +301,9 @@ async def update_item(item_id: str, update_data: ItemUpdate, current_user: str =
301
  if result_holder.get("error") == "not_found":
302
  raise HTTPException(status_code=404, detail="找不到该内容记录")
303
 
304
- # 🗂️ 清除排序缓存
305
  sort_cache.invalidate("items:")
 
306
 
307
  result = {"status": "success"}
308
  if result_holder.get("price_change_info"):
 
301
  if result_holder.get("error") == "not_found":
302
  raise HTTPException(status_code=404, detail="找不到该内容记录")
303
 
304
+ # 🗂️ 清除排序缓存和主数据缓存
305
  sort_cache.invalidate("items:")
306
+ invalidate_cache("items.json")
307
 
308
  result = {"status": "success"}
309
  if result_holder.get("price_change_info"):