# 有没有办法在Discourse中禁用所有缓存

**URL:** https://meta.discourse.org/t/is-there-any-way-to-disable-all-cache-in-discourse/261686
**Category:** Support
**Created:** [2023年四月14日 10:30 UTC](https://meta.discourse.org/t/is-there-any-way-to-disable-all-cache-in-discourse/261686 "2023-04-14T10:30:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Swarndeep\_Poddar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swarndeep_poddar/32/231276_2.png) [@Swarndeep\_Poddar](https://meta.discourse.org/u/Swarndeep_Poddar)
#### Post date: [2023年四月14日 10:30 UTC](https://meta.discourse.org/t/is-there-any-way-to-disable-all-cache-in-discourse/261686/1 "2023-04-14T10:30:50Z")

</div>

有没有办法在 Discourse 中禁用所有缓存？我想禁用所有缓存。在哪里可以更改缓存设置？

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2023年四月14日 10:34 UTC](https://meta.discourse.org/t/is-there-any-way-to-disable-all-cache-in-discourse/261686/2 "2023-04-14T10:34:48Z")

</div>

您能解释一下您说的“缓存”是什么意思，并分享一些关于您认为通过清除缓存将要解决的问题的细节吗？

---

<div class="post-metadata">

### Author: ![Swarndeep\_Poddar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swarndeep_poddar/32/231276_2.png) [@Swarndeep\_Poddar](https://meta.discourse.org/u/Swarndeep_Poddar)
#### Post date: [2023年四月17日 06:39 UTC](https://meta.discourse.org/t/is-there-any-way-to-disable-all-cache-in-discourse/261686/3 "2023-04-17T06:39:42Z")

</div>

我正在为特定用户执行硬删除点赞操作，但它仍然显示在用户的活动页面上，可能是缓存的原因。所以我想禁用缓存来验证。

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2023年四月17日 10:33 UTC](https://meta.discourse.org/t/is-there-any-way-to-disable-all-cache-in-discourse/261686/4 "2023-04-17T10:33:35Z")

</div>

编辑：看起来用户摘要页面的缓存大约是每小时更新一次？

这可能不会对您造成太多阻碍？

我相信 Redis 用于缓存，所以您或许可以刷新 Redis 缓存以获得更快的更改，但请注意，这会暂时影响您网站的性能？

如果这是一个生产网站，完全禁用缓存似乎是个坏主意？
