fix cache call

This commit is contained in:
Victor Shyba 2021-05-12 04:40:43 -03:00
parent cc02a0efc2
commit ccadd88af5

View file

@ -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()