Closed porg closed 7 months ago
I'd appreciate to get a response to this!
If you don't have the time to read the original report, let's make it short:
Besides all the debugging I still recommend to give the recreation of a purged page utmost priority (temporarily queue in the updates page(s) in another "urgent preload loop", or temporarily change the main loop offset to there, and then back to the last offset number), however you may do that technically, as I proposed in:
After updating /my-page/
I do not want to perform any of these workarounds:
/my-page/
anonymously so that the page cache is ready immediately for new visitors./my-page/
with that. That feels like shooting with a huge bomb on a tiny insect.This should work more intelligently. Regenerate what was recently purged. I mean that priority is really obvious. Please.
So my report has been confirmed as reproducible? And the symptoms could be fixed?
@porg This issue has been attached to a pull request that was merged and is staged to be released in W3 Total Cache 2.7.2. We have added a couple of settings that can be enabled to prime the cache for pushed and updated posts/pages.
I debugged W3TC 's Cache Preload feature intensively over the weekend & came to these findings:
/wp-content/cach/page_enhanced/domain-directory/
.686
My suspicion
My Website Usability and Performance Goals
My Environment + My Goals in full there and summarized here:
Debugging Setup
15
secs5
https://mydomain.com/mini-sitemap.xml
/mini-sitemap.xml
manually created for debugging, containing only 30 URLs in total:/
: 5 top level menu entires (/blog/
omitted)/skills/
and/work/
/skills/profile/
and/skills/analysis/
Preloading Loop Duration: 30 URLs in batches of 5 = 6 batches total * 15secs per batch = 90secs = 1.5 mins
Video Recording
Window setup used throughout the video:
Nicely documented
I put a lot of effort into presenting this as compact and comprehensible as possible in a video screen recording.
▶️ Youtube video with chapters + machine transcript
Alternative: Each chapters as standalone video file
01 Windows and Setup Explained
https://user-images.githubusercontent.com/737143/236892106-c6108684-31e4-4488-a863-9c4ed55e5cde.mov
02 Edited then Purged but Preloading never
https://user-images.githubusercontent.com/737143/236891249-7074b0d1-f3d3-404f-9fb6-97a6ea2071aa.mov
03 Cached pages outside of sitemap overnight
https://user-images.githubusercontent.com/737143/236892329-c6adcb3a-56e2-4bd6-9fe3-1b301bb15558.mov
04 Deleting entire domain page cache then observing one full Cache Preload cycle
https://user-images.githubusercontent.com/737143/236891470-b3ba3fdc-d7bd-4ed6-9d74-c5b62b9ab1ae.mov
05 Edited then Purged then Preloading worked
https://user-images.githubusercontent.com/737143/236891688-9c3e32e6-4119-43d1-a463-ea1428a6f5d3.mov
06 Observing Preloading in Command Line with wp-cli
https://user-images.githubusercontent.com/737143/236897916-e4645611-d434-4323-a118-b537375c93ea.mp4