Update config.json files to add 'ordeable' option and refactor cacheStrings function for consistency

This commit is contained in:
Jokob @NetAlertX
2026-03-17 09:22:25 +00:00
parent c7399215ec
commit 0a7ecb5b7c
20 changed files with 49 additions and 45 deletions

View File

@@ -290,7 +290,7 @@ function getSetting (key) {
// -----------------------------------------------------------------------------
function cacheStrings() {
return new Promise((resolve, reject) => {
if(getCache(CACHE_KEYS.initFlag('cacheStrings')) === "true")
if(getCache(CACHE_KEYS.initFlag('cacheStrings_v2')) === "true")
{
// Core strings are cached, but plugin strings may have failed silently on
// the first load (non-fatal fetch). Always re-fetch them so that plugin
@@ -370,7 +370,7 @@ function cacheStrings() {
})
.catch((error) => {
// Handle failure in any of the language processing
handleFailure('cacheStrings');
handleFailure('cacheStrings_v2');
reject(error);
});