# 批量归档消息直到刷新页面才会显示

**URL:** <https://meta.discourse.org/t/bulk-archiving-messages-does-not-show-until-page-refresh/379082>\
**Category:** UX\
**Tags:** pr-welcome, bulk-actions, fixed\
**Created:** [2025年八月18日 17:21 UTC](https://meta.discourse.org/t/bulk-archiving-messages-does-not-show-until-page-refresh/379082 "2025-08-18T17:21:58Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![tannerabread](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tannerabread/32/526153_2.png) [@tannerabread](https://meta.discourse.org/u/tannerabread)\
**Post date:** [2026年八月5日 21:17 UTC](https://meta.discourse.org/t/bulk-archiving-messages-does-not-show-until-page-refresh/379082/6 "2026-08-05T21:17:55Z")

</div>

@zogstrip 重现此问题的关键在于向下滚动直到页面加载更多消息。花了我一点时间，但我重新观看了视频，他在点击归档按钮之前确实这样做了。当消息数量超过 30 条且加载超过默认的 30 条消息时，这个问题很容易重现。

这应该能修复它：

> <https://github.com/discourse/discourse/pull/42379>
>
> Previously, when bulk-archiving messages and using infinite scroll, \`TopicList.l…oadMore()\` was caching the mutated lists and \`router.refresh()\` was leading to the PM route's \`model()\` hook, which was calling \`findOrResetCachedTopicList\` and returning the stale cached list instead of re-fetching.
> 
> \`afterBulkActionComplete\` now calls \`resetCachedTopicList()\` before \`router.refresh()\`, so the route model hook re-fetches the data from the server.

---

_[View the full topic](https://meta.discourse.org/t/bulk-archiving-messages-does-not-show-until-page-refresh/379082)._
