feat(proxy/config): resourceDebouce → resourceCacheDelay
Similar to xo-server.
This commit is contained in:
parent
5c9a47b6b7
commit
1b97cb263c
@ -8,7 +8,7 @@
|
||||
authenticationToken = ''
|
||||
|
||||
datadir = '/var/lib/xo-proxy/data'
|
||||
resourceDebounce = '5m'
|
||||
resourceCacheDelay = '5m'
|
||||
|
||||
[api]
|
||||
keepAliveInterval = 10e3
|
||||
|
@ -42,7 +42,7 @@ export default class App {
|
||||
})
|
||||
|
||||
const debounceResource = createDebounceResource()
|
||||
this.config.watchDuration('resourceDebounce', delay => {
|
||||
this.config.watchDuration('resourceCacheDelay', delay => {
|
||||
debounceResource.defaultDelay = delay
|
||||
})
|
||||
this.hooks.once('stop', debounceResource.flushAll)
|
||||
|
Loading…
Reference in New Issue
Block a user