# Rebuild HTML for all posts

**URL:** https://meta.discourse.org/t/rebuild-html-for-all-posts/282306
**Category:** Support
**Created:** [October 16, 2023, 2:39am UTC](https://meta.discourse.org/t/rebuild-html-for-all-posts/282306 "2023-10-16T02:39:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ufukayyildiz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ufukayyildiz/32/217157_2.png) [@ufukayyildiz](https://meta.discourse.org/u/ufukayyildiz)
#### Post date: [October 16, 2023, 2:39am UTC](https://meta.discourse.org/t/rebuild-html-for-all-posts/282306/1 "2023-10-16T02:39:46Z")

</div>

Hi,

What is the way to Rebuild HTML for all posts?

Thank you.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [October 16, 2023, 3:12am UTC](https://meta.discourse.org/t/rebuild-html-for-all-posts/282306/2 "2023-10-16T03:12:44Z")

</div>

I think you need to use rails to re-bake your posts. this can be a resource-intensive operation depending on the number of posts on your forum, so best do it during off-peak hours. Also backup first.

> [@Rebake all posts?](https://meta.discourse.org/t/rebake-all-posts/69340/2):
>
> Either one of these should work ./launcher enter app rake posts:rebake or cd /var/discourse ./launcher enter app bundle exec rake posts:rebake

Better if you can somehow do this:

> [@Rebake all posts matching a pattern](https://meta.discourse.org/t/rebake-all-posts-matching-a-pattern/48713):
>
> bookmark This guide provides instructions on how to rebake all posts in Discourse that match a specific string or regular expression, utilizing the Rails console for additional advanced options. person_raising_hand Required user level: Administrator warning Console access required Want to rebake all the posts matching a string or regular expression? Let’s get started! Accessing your site To begin, connect to your Discourse Droplet via SSH and enter the Docker container for your Disc…

---

<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: [November 15, 2023, 3:13am UTC](https://meta.discourse.org/t/rebuild-html-for-all-posts/282306/3 "2023-11-15T03:13:24Z")

</div>

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