Vragen over rebake

AI-generated summary

In a support thread titled ‘Questions about rebake,’ Canapin seeks clarification on the rake post:rebake task after changing their forum’s domain. They ask whether rebaking starts with the most recent posts and whether it updates URLs from the old domain (e.g., localhost) to the new one — particularly in imported quote syntax like [quote="zebra"], which Falco notes is not standard Discourse syntax. Falco confirms that rebake will update URLs, but recommends using remap for faster domain changes, referencing Change the domain name or rename my Discourse?. Canapin acknowledges the imported quote format and explains they still need to rebake due to improperly cooked posts (e.g., missing link previews) from an import, which only fix after manual rebuild. They also note that despite rebaking 70,000 posts, recent ones haven’t been processed yet. Falco clarifies that rebake does start with recent posts but processes them one by one, constrained by CPU performance.

Hi,

I’d like some clarification about the rebake task because I’m not sure I 100% get it.

I’ve changed the domain of my forum and I’m rebaking all posts with rake post:rebake, since I read that it’s recommended in this case.

Is it supposed to start with the most recent messages?

Is it supposed to fix URLS mapped to the old domain?
Example: a raw text from one of my post begins by:

[quote="zebra"] 

Which is cooked to:

<aside class="quote group-Poster" data-username="zebra">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="20" height="20" src="//localhost:3000/user_avatar/localhost/zebra/40/4042_2.png" class="avatar">
zebra:
</div>

I understand that a rebake would replace the localhost link with my new domain?

Discourse quotes are not like that, but like:

[quote="Canapin, post:1, topic:164992"]

Yes, it will. But a remap would be way, way faster. Like show in

Change the domain name or rename my Discourse?

Ah, I see. That must be imported quotes then.

Thank you!

I need to rebake anyway since posts aren’t properly cooked (because of the import I believe). For example, links on a single line won’t show a preview/media until I rebuild the HTML in the post admin actions. Then only, it is properly cooked.

As for my first question “Is it supposed to start with the most recent messages?”, I thought I read somewhere that it started by the most recent ones, but I’m already at 70000 rebaked posts and very recent ones doesn’t seem to be rebaked yet. :thinking:

It indeed does, but it will do one at time and will be limited by your CPU performance.