mirror of
https://github.com/Qortal/qapp-core.git
synced 2025-06-14 01:21:21 +00:00
fix cache duration
This commit is contained in:
parent
304ba11ba5
commit
f8bb556cdd
@ -73,7 +73,7 @@ interface BaseProps {
|
||||
resourceCacheDuration?: number
|
||||
disablePagination?: boolean
|
||||
disableScrollTracker?: boolean
|
||||
retryAttempts: number
|
||||
retryAttempts?: number
|
||||
returnType: 'JSON' | 'BASE64'
|
||||
onResults?: (results: Results)=> void
|
||||
searchNewData?: {
|
||||
|
@ -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: {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user