# 自动关闭消息的帖子计数不允许托管站点使用零值

**URL:** https://meta.discourse.org/t/auto-close-messages-post-count-does-not-allow-a-zero-value-for-hosted-site/127403
**Category:** Support
**Created:** [2019年九月2日 12:39 UTC](https://meta.discourse.org/t/auto-close-messages-post-count-does-not-allow-a-zero-value-for-hosted-site/127403 "2019-09-02T12:39:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![RCheesley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rcheesley/32/455409_2.png) [@RCheesley](https://meta.discourse.org/u/RCheesley)
#### Post date: [2019年九月2日 12:39 UTC](https://meta.discourse.org/t/auto-close-messages-post-count-does-not-allow-a-zero-value-for-hosted-site/127403/1 "2019-09-02T12:39:17Z")

</div>

在“自动关闭消息的帖子数”设置的帮助文本中，说明如下：

> 消息在自动关闭前允许的最大帖子数（设为 0 以禁用）

但当我将其设置为 0 时，系统提示：

> auto\_close\_messages\_post\_count：值必须在 100 到 10000 之间。

这似乎与上述帮助文本相矛盾！

并非紧急问题，只是在查看设置更改时偶然发现的。

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [2019年九月2日 13:28 UTC](https://meta.discourse.org/t/auto-close-messages-post-count-does-not-allow-a-zero-value-for-hosted-site/127403/2 "2019-09-02T13:28:36Z")

</div>

此设置无法针对我们的托管网站禁用。

---

<div class="post-metadata">

### Author: ![RCheesley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rcheesley/32/455409_2.png) [@RCheesley](https://meta.discourse.org/u/RCheesley)
#### Post date: [2019年九月2日 14:49 UTC](https://meta.discourse.org/t/auto-close-messages-post-count-does-not-allow-a-zero-value-for-hosted-site/127403/3 "2019-09-02T14:49:40Z")

</div>

啊……也许让这一点更清晰会更有帮助，谢谢你的提醒！

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [2020年二月21日 19:00 UTC](https://meta.discourse.org/t/auto-close-messages-post-count-does-not-allow-a-zero-value-for-hosted-site/127403/4 "2020-02-21T19:00:08Z")

</div>

我们也遇到了同样的问题。

为什么不能禁用它？

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2020年二月22日 04:07 UTC](https://meta.discourse.org/t/auto-close-messages-post-count-does-not-allow-a-zero-value-for-hosted-site/127403/5 "2020-02-22T04:07:10Z")

</div>

因为性能问题会导致您的网站以及该服务器上托管的所有其他网站崩溃。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2024年一月26日 17:09 UTC](https://meta.discourse.org/t/auto-close-messages-post-count-does-not-allow-a-zero-value-for-hosted-site/127403/6 "2024-01-26T17:09:40Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2024年二月25日 17:09 UTC](https://meta.discourse.org/t/auto-close-messages-post-count-does-not-allow-a-zero-value-for-hosted-site/127403/7 "2024-02-25T17:09:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
