# Rebaking for automatic header anchors?

**URL:** https://meta.discourse.org/t/rebaking-for-automatic-header-anchors/186106
**Category:** Support
**Created:** [April 8, 2021, 4:23pm UTC](https://meta.discourse.org/t/rebaking-for-automatic-header-anchors/186106 "2021-04-08T16:23:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)
#### Post date: [April 8, 2021, 4:23pm UTC](https://meta.discourse.org/t/rebaking-for-automatic-header-anchors/186106/1 "2021-04-08T16:23:08Z")

</div>

I was very excited to see this feature:

> [@2.7.0.beta6: Automatic Group Avatar Flair, Improved User Education Content, Bookmark Pinning, and more](https://meta.discourse.org/t/2-7-0-beta6-automatic-group-avatar-flair-improved-user-education-content-bookmark-pinning-and-more/185908#automatic-header-anchor-links):
>
> New features in 2.7.0.beta6 Move site updated modal into a less obtrusive prompt As those who read these notes can attest to, Discourse is constantly receiving updates. When a site admin updates the site, end-users need to refresh their browser to take advantage of the changes. If an end-user does not do so within 24 hours of an update, they’ll receive a message prompting them to refresh. This message previously appeared as a modal, blocking the user from taking any further actions. It now appea…

I upgraded Maker Forums to 2.7.0.beta6 and it looks like the HTML needs to be rebuilt for the anchors to show up in old posts, which completely makes sense. I’m guessing that this is something that I should do manually if I want to enable this throughout the site. However, I have over 400,000 posts and would like to avoid unnecessary rebaking, so `posts:rebake` is not my friend. I see this thread:

> [@My journey into a massive posts rebake job](https://meta.discourse.org/t/my-journey-into-a-massive-posts-rebake-job/84816/8):
>
> I think there’s also a ‘version’ column on the posts table that you can null out to cause gradual rebaking, too. I think it does 100 posts every time the job triggers.

Is this a good idea?

```plaintext
Post.where("cooked LIKE '%<h%'").update_all('baked_version = NULL')

```

Also, the link at the top, where I linked to `#automatic-header-anchor-links` shows me that oneboxing doesn’t (yet?) know about the section for discourse-internal anchor links, though it does for wikipedia anchor oneboxing (which is awesome). So I’m hoping that oneboxing can grow that soon. :smiling_face:

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 8, 2021, 5:13pm UTC](https://meta.discourse.org/t/rebaking-for-automatic-header-anchors/186106/2 "2021-04-08T17:13:49Z")

</div>

Yes, that is pretty much what [Rebake all posts matching a pattern](https://meta.discourse.org/t/rebake-all-posts-matching-a-pattern/48713#posts-with-a-string-in-the-cooked-post) tells you to do.
