# How can I force the cache to be rebuilt after I enable new customizations?

**URL:** https://meta.discourse.org/t/how-can-i-force-the-cache-to-be-rebuilt-after-i-enable-new-customizations/36922
**Category:** Support
**Created:** [2015 年 12 月 18 日午後 5:41 UTC](https://meta.discourse.org/t/how-can-i-force-the-cache-to-be-rebuilt-after-i-enable-new-customizations/36922 "2015-12-18T17:41:12Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Vocino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vocino/32/85136_2.png) [@Vocino](https://meta.discourse.org/u/Vocino)
#### Post date: [2015 年 12 月 18 日午後 5:41 UTC](https://meta.discourse.org/t/how-can-i-force-the-cache-to-be-rebuilt-after-i-enable-new-customizations/36922/1 "2015-12-18T17:41:12Z")

</div>

It seems like adding and enabling new customizations in the admin is delayed until I do a full rebuild to upgrade Discourse. At first I thought it was just local cache but that doesn’t seem to be it.

Is there any way to force an update of the customizations?

---

<div class="post-metadata">

### Author: ![Yuun](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuun](https://meta.discourse.org/u/Yuun)
#### Post date: [2015 年 12 月 18 日午後 6:24 UTC](https://meta.discourse.org/t/how-can-i-force-the-cache-to-be-rebuilt-after-i-enable-new-customizations/36922/2 "2015-12-18T18:24:14Z")

</div>

To be clear, do you mean at /admin/customize? All of those (as far as I know) are applied immediately, you shouldn’t need to do a container rebuild.

Are you looking at your site itself or are you trying to view customizations while still in /admin? I forget exactly what the setup is, but customizations don’t tend to show up while you’re in /admin.

---

<div class="post-metadata">

### Author: ![Vocino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vocino/32/85136_2.png) [@Vocino](https://meta.discourse.org/u/Vocino)
#### Post date: [2015 年 12 月 18 日午後 7:09 UTC](https://meta.discourse.org/t/how-can-i-force-the-cache-to-be-rebuilt-after-i-enable-new-customizations/36922/3 "2015-12-18T19:09:40Z")

</div>

That’s correct @Yuun. These are `/admin/customize` additions, specifically for CSS. From everything I’ve tried, I can’t seem to get them to take in real time. They are real time for you? I’m not sure what I might be doing wrong.

Browser clearing, incognito, different machines…

---

<div class="post-metadata">

### Author: ![Yuun](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuun](https://meta.discourse.org/u/Yuun)
#### Post date: [2015 年 12 月 18 日午後 7:34 UTC](https://meta.discourse.org/t/how-can-i-force-the-cache-to-be-rebuilt-after-i-enable-new-customizations/36922/4 "2015-12-18T19:34:56Z")

</div>

Yeah, they definitely update in real time for me, I fiddle with the CSS customizations all the time.

I’m not sure what would cause them to stop doing this, unfortunately.

---

<div class="post-metadata">

### Author: ![Vocino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vocino/32/85136_2.png) [@Vocino](https://meta.discourse.org/u/Vocino)
#### Post date: [2015 年 12 月 18 日午後 7:44 UTC](https://meta.discourse.org/t/how-can-i-force-the-cache-to-be-rebuilt-after-i-enable-new-customizations/36922/5 "2015-12-18T19:44:46Z")

</div>

Based on your answer I investigated further. The reason is that the site customizations are included in the CDN rewrite. They’re urls under `/site_customizations/`. So if you have a CDN rewrite in place, you’ll need to perform some manual invalidations on `site_customizations/*`.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024 年 6 月 8 日午後 12:45 UTC](https://meta.discourse.org/t/how-can-i-force-the-cache-to-be-rebuilt-after-i-enable-new-customizations/36922/6 "2024-06-08T12:45:59Z")

</div>

このトピックは3094日後に自動的に閉じられました。返信はもう許可されていません。
