fix cache call
This commit is contained in:
parent
cc02a0efc2
commit
ccadd88af5
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ class SearchIndex:
|
||||||
await self.sync_client.update_by_query(
|
await self.sync_client.update_by_query(
|
||||||
self.index, body=self.update_filter_query(Censor.RESOLVE, blocked_channels, True), slices=4)
|
self.index, body=self.update_filter_query(Censor.RESOLVE, blocked_channels, True), slices=4)
|
||||||
await self.sync_client.indices.refresh(self.index)
|
await self.sync_client.indices.refresh(self.index)
|
||||||
self.clear_caches()
|
self.clear_caches()
|
||||||
|
|
||||||
def clear_caches(self):
|
def clear_caches(self):
|
||||||
self.search_cache.clear()
|
self.search_cache.clear()
|
||||||
|
|
Loading…
Reference in a new issue