mirror of
https://github.com/basicswap/basicswap.git
synced 2025-01-03 17:29:26 +00:00
Set offers price chart and offers table at 5 min cache.
This commit is contained in:
parent
ea41c4b41a
commit
4143f1a8ce
2 changed files with 2 additions and 2 deletions
|
@ -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' },
|
||||||
|
|
Loading…
Reference in a new issue