Restore comment bootstrap and guard admin cache hydration

This commit is contained in:
thePR0M3TH3AN committed 2025-11-03 20:19:45 -05:00
1 parent 4a70adcd1c
commit 5d31366c79
5 files changed
+284 -8

No files matched your search

+9 -1
View File
@@ -147,7 +147,15 @@ class AccessControl {
_hydrateFromCache() {
this._hydratedFromCache = false;
const cachedState = readCachedAdminState();
let cachedState = null;
try {
cachedState = readCachedAdminState();
} catch (error) {
if (error && error.name === "ReferenceError") {
return;
}
throw error;
}
if (cachedState) {
this._applyState(cachedState, { markLoaded: false });
this._hydratedFromCache = true;