diff --git a/public/s/js/f0ckm.js b/public/s/js/f0ckm.js index 755eab7..e56eb2e 100644 --- a/public/s/js/f0ckm.js +++ b/public/s/js/f0ckm.js @@ -8588,6 +8588,10 @@ class NotificationSystem { } handleNewItem(data) { + // Invalidate client-side caches so next/prev navigation knows about the new item + if (typeof itemCacheMap !== 'undefined') itemCacheMap.clear(); + if (typeof gridCacheMap !== 'undefined') gridCacheMap.clear(); + // Only prepend to the grid on the main/index page const grid = document.querySelector('.posts'); if (!grid) return;