mirror of
https://github.com/Qortal/qapp-core.git
synced 2025-06-14 17:41:20 +00:00
fix cache duration
This commit is contained in:
parent
304ba11ba5
commit
f8bb556cdd
@ -73,7 +73,7 @@ interface BaseProps {
|
|||||||
resourceCacheDuration?: number
|
resourceCacheDuration?: number
|
||||||
disablePagination?: boolean
|
disablePagination?: boolean
|
||||||
disableScrollTracker?: boolean
|
disableScrollTracker?: boolean
|
||||||
retryAttempts: number
|
retryAttempts?: number
|
||||||
returnType: 'JSON' | 'BASE64'
|
returnType: 'JSON' | 'BASE64'
|
||||||
onResults?: (results: Results)=> void
|
onResults?: (results: Results)=> void
|
||||||
searchNewData?: {
|
searchNewData?: {
|
||||||
|
@ -73,7 +73,7 @@ interface CacheState {
|
|||||||
|
|
||||||
export const useCacheStore = create<CacheState>
|
export const useCacheStore = create<CacheState>
|
||||||
((set, get) => ({
|
((set, get) => ({
|
||||||
searchCacheExpiryDuration: 0.1 * 60 * 1000,
|
searchCacheExpiryDuration: 5 * 60 * 1000,
|
||||||
resourceCacheExpiryDuration: 30 * 60 * 1000,
|
resourceCacheExpiryDuration: 30 * 60 * 1000,
|
||||||
resourceCache: {},
|
resourceCache: {},
|
||||||
searchCache: {},
|
searchCache: {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user