staleness sucks

This commit is contained in:
2026-07-19 19:44:54 +02:00
parent 517444f9ce
commit 5bfa336773

View File

@@ -4427,6 +4427,10 @@ window.cancelAnimFrame = (function () {
if (window.renderTags) { if (window.renderTags) {
window.renderTags(res.tags); window.renderTags(res.tags);
} }
// Evict the cached item HTML so navigating back fetches fresh content
if (window.invalidateItemCache) {
window.invalidateItemCache(postid);
}
} else { } else {
revert(); revert();
window.flashMessage('Error: ' + (res.msg || 'Failed to update rating'), 3000, 'error'); window.flashMessage('Error: ' + (res.msg || 'Failed to update rating'), 3000, 'error');