…and, price repeating, all of it seems to be precisely how I need it to look and behaves precisely how I need it to behave. Right here’s one other motion shot!


Image of the log colorizer working

The ultimate product. She might not appear to be a lot, however she’s acquired it the place it counts, child.

Credit score:
Lee Hutchinson

The ultimate product. She might not appear to be a lot, however she’s acquired it the place it counts, child.


Credit score:

Lee Hutchinson

Downside 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 in search of it. Right here it’s:


Screenshot showing a race condition between apple news and wordpress's cache clearing efforts

Downside noticed. Observe the AppleNewsBots hitting the newly printed submit earlier than Discourse can do its factor and the ultimate model of the web page with feedback is prepared.

Credit score:
Lee Hutchinson

Downside noticed. Observe the AppleNewsBots hitting the newly printed submit 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. (Properly, not likely. However kinda.)

Much less briefly: I’ve blurred out Eric’s IP tackle, 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 introduced right here, you’re seeing Eric press the “publish” button on his day by day forecast—that’s the “POST” occasion on the very high of the window. The following occasions from Eric’s IP tackle are his browser having the usual post-publication dialog with WordPress so it may possibly show the “submit printed efficiently” notification after which redraw the WP block editor.

Beneath Eric’s submit, you may see the Discourse server (with orange IP tackle) notifying WordPress that it has created a brand new Discourse remark thread for Eric’s submit, then grabbing the issues it must mirror Eric’s submit because the opener for that thread. You possibly can see it does GETs for the precise submit and in addition for the submit’s embedded photographs. About one second after Eric hits “publish,” the brand new submit’s Discourse thread is prepared, and it will get connected to Eric’s submit.

Ah, however discover what else occurs throughout that one second.

To assist broaden House Metropolis Climate’s attain, we cross-publish all the web site’s posts to Apple Information, utilizing a popular Apple News plug-in (the identical one Ars makes use of, the truth is). 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 submit earlier than Discourse has an opportunity to do its factor.

0
Show Comments (0) Hide Comments (0)
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x