A bug was reported by dandv where edits made to a post did not reflect in the rendered HTML, although the raw markdown and diffs correctly displayed the changes. The issue appeared to stem from a post created by a rebake task. zogstrip and codinghorror discussed potential causes, noting that the “cooked post processor” often creates timing conflicts during edits. sam provided a detailed technical explanation: the cooked post processor runs asynchronously in Sidekiq to handle images and oneboxes. If an edit occurs while this process is running, the processor may finish and overwrite the new “cooked” HTML generated by the edit with the older version, effectively discarding the changes. The proposed solution is to ensure the cooked post processor always rebakes the markdown to prevent this race condition. codinghorror welcomed the fix, and zogstrip confirmed that a fix has been implemented via a specific commit in the Discourse repository.
The HTML diff doesn’t show any difference. The markdown/raw diff correctly shows the changes (as does the raw post), but they aren’t rendered in the post itself. Needless to say, I’ve reloaded the page a bunch of times, but Discourse still shows the previous revision (#2) of the post, which was created by the rebake task - maybe this is the culprit?