Slavik
07/10/2023, 1:08 PMKishore Nallan
07/10/2023, 1:10 PMPOST /operations/cache/clear
Slavik
07/10/2023, 1:22 PMSlavik
07/10/2023, 3:56 PMClient
from typesense
npm package. The thing is that w r executing
client.collections(index).documents().clearCache()
and the next search request is receiving the cached version 😞
c @Jason Bosco @Kishore NallanSlavik
07/10/2023, 4:09 PMJason Bosco
07/10/2023, 4:18 PMclient.operations().perform('cache/clear')
Slavik
07/10/2023, 4:18 PMSlavik
07/10/2023, 5:12 PMawait this.client.operations.perform('cache/clear');
after importing the docs
await this.client.collections(index).documents().import(data, { action: 'update' });
my client config is
useServerSideSearchCache: true,
cacheSearchResultsForSeconds: 60,
and the search method is using
use_cache: true,
Slavik
07/10/2023, 5:25 PMJason Bosco
07/10/2023, 5:26 PMSlavik
07/10/2023, 5:26 PMSlavik
07/10/2023, 5:27 PMJason Bosco
07/10/2023, 5:32 PMSlavik
07/10/2023, 5:37 PM