From 4a491f404ce76b6e35d4125a4aac879be033b73f Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Tue, 14 Jul 2026 19:06:40 +0200 Subject: [PATCH] fix for item page --- public/s/js/f0ckm.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/s/js/f0ckm.js b/public/s/js/f0ckm.js index 4903ff0..2ccf826 100644 --- a/public/s/js/f0ckm.js +++ b/public/s/js/f0ckm.js @@ -2228,7 +2228,10 @@ window.cancelAnimFrame = (function () { // the viewport, loading them all simultaneously instead of progressively. if (isGrid) { const targetCacheKey = urlObj.pathname + urlObj.search; - if (gridCacheMap.has(targetCacheKey)) { + if (options.bypassCache) { + gridCacheMap.delete(targetCacheKey); + } + if (gridCacheMap.has(targetCacheKey) && !options.bypassCache) { const cache = gridCacheMap.get(targetCacheKey); // Keep cache alive — cleared on mode/filter changes via gridCacheMap.clear() @@ -3708,7 +3711,8 @@ window.cancelAnimFrame = (function () { const _inComment = anyLink.closest(".comment, .comment-content, .comment-body, .motd-content"); loadItemAjax(targetUrl, !_inComment); } else { - loadPageAjax(targetUrl, true); + const isBrand = anyLink.classList.contains('navbar-brand'); + loadPageAjax(targetUrl, true, { bypassCache: isBrand }); } return false; }