Guide
Request caching
1min
Klevu SDK automatically caches sent request to local memory for speedier results for same requests.
If you a system where same KlevuFetch is called multiple times, for example when focusing on input, it is much more convinient to get results from local memory than making same request to Klevu API again and again.
This happens automatically without any configuration with 10 minutes cache. If you wish disable or change the time of caching you change this with KlevuConfig in your initialization.
Cache is cleared if user browser make a full page navigation. In typical Single Page Application this cache is not cleared when changing route.
Updated 30 Oct 2023
Did this page help you?