mirror of
https://github.com/decolua/9router.git
synced 2026-05-08 12:01:28 +00:00
12 lines
260 B
JavaScript
12 lines
260 B
JavaScript
// Synchronous RTK toggle cache. Updated by /api/settings PATCH handler
|
|
// and initialized from DB on server boot.
|
|
let enabled = false;
|
|
|
|
export function setRtkEnabled(value) {
|
|
enabled = Boolean(value);
|
|
}
|
|
|
|
export function isRtkEnabled() {
|
|
return enabled;
|
|
}
|