From f9a89f79b0b4212d0ad1f672680b3f492079d731 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 4 Nov 2025 16:31:37 +0100 Subject: [PATCH] Clear Bookstack article cache on first load --- public/plugins/bookstack/bookstackIntegration.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/plugins/bookstack/bookstackIntegration.js b/public/plugins/bookstack/bookstackIntegration.js index 59523a5bb..05417a8f6 100644 --- a/public/plugins/bookstack/bookstackIntegration.js +++ b/public/plugins/bookstack/bookstackIntegration.js @@ -1,3 +1,8 @@ +if (!localStorage.getItem('bookstack_cache_cleared')) { + localStorage.removeItem('bookstack_article_Radius'); + localStorage.setItem('bookstack_cache_cleared', 'true'); +} + document.addEventListener('DOMContentLoaded', async () => { const linkEl = document.getElementById('bookstackLink'); if (!linkEl) return;