Closed danielbachhuber closed 6 years ago
You repeat the sleep check in status.php and wp-cli.php. Wouldn't it make more sense to put in the remote_get() function (in debug.php) so we don't have to repeat it and the headers?
Potentially, although that changes the behavior of remote_get()
which I'm not sure is a good thing.
It wouldn't be harmful as far as I can see. I was messing with it this way in 4.6 (enter the dev mode):
https://github.com/Ipstenu/varnish-http-purge/blob/REL_4.6/debug.php#L111
Wouldn't that be the same thing?
It wouldn't be harmful as far as I can see. I was messing with it this way in 4.6 (enter the dev mode):
Ah, I didn't realize remote_get()
already made two requests. I've updated in 3ebe6f5de1c833c11ecd9ecb3b58f94917803fec
Three specific enhancements:
Age
header verification is always accurate:Fixes #44
Fixes #46
--include-headers
flag to include headers in the debug report:Fixes #45
Test this branch in a remote environment with: