fix cache duration

This commit is contained in:
PhilReact 2025-04-14 13:52:48 +03:00
parent 304ba11ba5
commit f8bb556cdd
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ interface BaseProps {
resourceCacheDuration?: number
disablePagination?: boolean
disableScrollTracker?: boolean
retryAttempts: number
retryAttempts?: number
returnType: 'JSON' | 'BASE64'
onResults?: (results: Results)=> void
searchNewData?: {

View File

@ -73,7 +73,7 @@ interface CacheState {
export const useCacheStore = create<CacheState>
((set, get) => ({
searchCacheExpiryDuration: 0.1 * 60 * 1000,
searchCacheExpiryDuration: 5 * 60 * 1000,
resourceCacheExpiryDuration: 30 * 60 * 1000,
resourceCache: {},
searchCache: {},