fix for item page
This commit is contained in:
@@ -2228,7 +2228,10 @@ window.cancelAnimFrame = (function () {
|
|||||||
// the viewport, loading them all simultaneously instead of progressively.
|
// the viewport, loading them all simultaneously instead of progressively.
|
||||||
if (isGrid) {
|
if (isGrid) {
|
||||||
const targetCacheKey = urlObj.pathname + urlObj.search;
|
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);
|
const cache = gridCacheMap.get(targetCacheKey);
|
||||||
// Keep cache alive — cleared on mode/filter changes via gridCacheMap.clear()
|
// 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");
|
const _inComment = anyLink.closest(".comment, .comment-content, .comment-body, .motd-content");
|
||||||
loadItemAjax(targetUrl, !_inComment);
|
loadItemAjax(targetUrl, !_inComment);
|
||||||
} else {
|
} else {
|
||||||
loadPageAjax(targetUrl, true);
|
const isBrand = anyLink.classList.contains('navbar-brand');
|
||||||
|
loadPageAjax(targetUrl, true, { bypassCache: isBrand });
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user