mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-11 06:07:51 +08:00
⛅ Sync 2026-08-22 23:43:25
This commit is contained in:
1 parent
5a64dc251d
commit
3349c20490
16 files changed
+450
-104
No files matched your search
@@ -320,6 +320,30 @@ return view.extend({
|
||||
o.default = 86400;
|
||||
o.depends('cache', '1');
|
||||
|
||||
o = s.taboption('advanced', form.Flag, 'prefetch', _('Cache Prefetching'),
|
||||
_('Proactively refresh hot cache entries in the background before they expire.'));
|
||||
o.rmempty = false;
|
||||
o.default = false;
|
||||
o.depends('cache', '1');
|
||||
|
||||
o = s.taboption('advanced', form.Value, 'prefetch_before_expire', _('Prefetch Before Expire'),
|
||||
_('Prefetch when the remaining TTL is less than this value (in seconds).'));
|
||||
o.datatype = 'and(uinteger,min(1))';
|
||||
o.default = 10;
|
||||
o.depends('prefetch', '1');
|
||||
|
||||
o = s.taboption('advanced', form.Value, 'prefetch_min_hits', _('Prefetch Min Hits'),
|
||||
_('Minimum cache hits required since the last refresh to trigger a prefetch.'));
|
||||
o.datatype = 'and(uinteger,min(1))';
|
||||
o.default = 3;
|
||||
o.depends('prefetch', '1');
|
||||
|
||||
o = s.taboption('advanced', form.Value, 'prefetch_scan_interval', _('Prefetch Scan Interval'),
|
||||
_('Interval for the background thread to scan the cache for prefetching (in seconds).'));
|
||||
o.datatype = 'and(uinteger,min(1))';
|
||||
o.default = 5;
|
||||
o.depends('prefetch', '1');
|
||||
|
||||
o = s.taboption('advanced', form.Flag, 'dump_file', _('Cache Dump'),
|
||||
_('Save the cache locally and reload the cache dump on the next startup'));
|
||||
o.rmempty = false;
|
||||
|
||||
Reference in new issue
Block a user