…and, price repeating, all of it appears precisely how I need it to look and behaves precisely how I need it to behave. Right here’s one other motion shot!
The ultimate product. She could not appear to be a lot, however she’s acquired it the place it counts, child.
Credit score:
Lee Hutchinson
Drawback noticed
Armed with my handy-dandy log colorizer, I patiently waited for the wrong-comment-area drawback conduct to re-rear its still-ugly head. I didn’t have to attend lengthy, and inside a few days, I had my root trigger. It had been there all alongside, if I’d solely determined to spend a while searching for it. Right here it’s:
Drawback noticed. Word the AppleNewsBots hitting the newly printed publish earlier than Discourse can do its factor and the ultimate model of the web page with feedback is prepared.
Credit score:
Lee Hutchinson
Briefly: The issue is Apple’s fault. (Nicely, not likely. However kinda.)
Much less briefly: I’ve blurred out Eric’s IP deal with, however it’s darkish inexperienced, so anyplace within the above picture the place you see a blurry, darkish inexperienced smudge, that’s Eric. Within the roughly 12-ish seconds offered right here, you’re seeing Eric press the “publish” button on his each day forecast—that’s the “POST” occasion on the very prime of the window. The following occasions from Eric’s IP deal with are his browser having the usual post-publication dialog with WordPress so it might probably show the “publish printed efficiently” notification after which redraw the WP block editor.
Under Eric’s publish, you may see the Discourse server (with orange IP deal with) notifying WordPress that it has created a brand new Discourse remark thread for Eric’s publish, then grabbing the issues it must mirror Eric’s publish because the opener for that thread. You may see it does GETs for the precise publish and in addition for the publish’s embedded photographs. About one second after Eric hits “publish,” the brand new publish’s Discourse thread is prepared, and it will get hooked up to Eric’s publish.
Ah, however discover what else occurs throughout that one second.
To assist increase House Metropolis Climate’s attain, we cross-publish all the website’s posts to Apple Information, utilizing a popular Apple News plug-in (the identical one Ars makes use of, actually). And proper there, with these two GET requests instantly after Eric’s POST request, lay the issue: You’re seeing the vanguard of Apple Information’ hungry military of story-retrieval bots, summoned by the identical “publish” occasion, charging in and demanding a replica of the model new publish earlier than Discourse has an opportunity to do its factor.


