mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
Set offers price chart and offers table at 5 min cache.
This commit is contained in:
@@ -10,7 +10,7 @@ const CACHE_KEY = 'latestPricesCache';
|
|||||||
|
|
||||||
const MIN_REFRESH_INTERVAL = 60; // 60 sec
|
const MIN_REFRESH_INTERVAL = 60; // 60 sec
|
||||||
|
|
||||||
const CACHE_DURATION = 10 * 60 * 1000; // 10 minutes
|
const CACHE_DURATION = 5 * 60 * 1000; // 5 minutes
|
||||||
const FALLBACK_CACHE_DURATION = 24 * 60 * 60 * 1000; // 24 hours
|
const FALLBACK_CACHE_DURATION = 24 * 60 * 60 * 1000; // 24 hours
|
||||||
|
|
||||||
let jsonData = [];
|
let jsonData = [];
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const config = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
showVolume: false,
|
showVolume: false,
|
||||||
cacheTTL: 10 * 60 * 1000, // 10 minutes in milliseconds
|
cacheTTL: 5 * 60 * 1000, // 5 minutes in milliseconds
|
||||||
specialCoins: [''],
|
specialCoins: [''],
|
||||||
resolutions: {
|
resolutions: {
|
||||||
year: { days: 365, interval: 'month' },
|
year: { days: 365, interval: 'month' },
|
||||||
|
|||||||
Reference in New Issue
Block a user