💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 清理缓存 原文链接 : [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html) 译文链接 : [清理缓存](/pages/viewpage.action?pageId=4260941) 贡献者 : [飞师傅](/display/~zhangyifei) 清除缓存API允许清除与一个或多个索引相关联的所有缓存和特定缓存。 ``` POST /twitter/_cache/clear ``` 默认情况下,API会清除所有缓存。可以通过设置`query`、`fielddata`或者`request`来显式清除特定高速缓存。 与特定字段相关的所有高速缓存也可以通过使用逗号分隔符的相关字段列表指定`fields`参数来清除。 ###### 多个索引 清除缓存API可以通过单个调用应用于多个索引,甚至可以应用于`_all`索引。 ``` POST /kimchy,elasticsearch/_cache/clear POST /_cache/clear ```