Questions about rebake

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?

5 Likes

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.

3 Likes

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