PG thanks those who have sent suggestions about PG’s mysterious problems with Comments numbers not showing correctly, either via comments to PG’s prior post on the topic or via email.
After considering the information submitted by helpful visitors and doing a bit of research, PG think he’s found a fix.
Here’s a brief summary of PG’s latest theories which may or may not be correct. (Time might not even tell if they’re correct. PG doesn’t actually care if he understand exactly what he might have done to fix the problem, he just wants the problem fixed.)
Trigger Warning for Computer Science People: PG is not going to use a lot of technical terms because he would probably not do so correctly. He’ll simplify things down to the level his brain can process today. If PG’s brain mistakenly simplifies something into total incorrectness, feel free to clarify/correct in the comments.
That said, relax. PG isn’t going to try to do this sort of thing on a regular basis or, perhaps, ever again. Unlike straightforward legal doctrines such as The Rule in Shelley’s Case, PG understands that he can’t actually understand computer science stuff.
Being a lawyer for a long time has, however, allowed PG to sharpen his hand-waving abilities into something that impresses him, if not others.
Unfortunately, hand-waving doesn’t always work on computers the way it might work on carbon-based life forms.
Statement of Problem and, Hopefully, Solution
- Like a great many other WordPress sites, TPV uses a caching plugin. PG has a very good hosting provider (now), Hosting Matters, but even a very good host uses hard drives and, even with fast hard drives and fast internet connections, there’s going to be a lag between a visitor to TPV clicking on something and any hosting provider delivering a response to the visitor’s browser.
- A widely-used means of reducing that turnaround time is to add a caching plugin to the WP site. Basically, a caching plugin tells WP it doesn’t need to bother the servers much, because the plugin already knows what WP is looking for.
- This works fine so long as the caching plugin actually knows what it claims to know.
- Sometimes when a widget or something else is changed in a WordPress site, the caching plugin doesn’t get the message. So it says bananas are still yellow today because they were yellow yesterday even if the yellow bananas have disappeared and been replaced by green bananas. (PG apologizes if he got too technical about bananas.)
- So PG has added another plugin that says it fixes the problem with the existing TPV caching plugin holding onto stale info by forcing the caching program to forget the stale info.
- PG doesn’t know what happens if the plugins disagree about what truth is.
- So far, it’s looking like it works, however.
Let PG know if the comments seem to be better.