dvmorris
Member
Posted 2 years ago #
I'm trying to use cURL to request a web page on the command line on a local WP 3.0.1 development environment using WP Super Cache, and it does not seem to register cache hits or misses.
The WP Super Cache debug log doesn't write any information, even though cURL retrieves the correct file. wget does the same thing. When I load it in the web browser, however, WP Super Cache writes to the debug log as expected.
Any idea why that's happening?
Thanks,
Dave
Did you try the debug system in the plugin?
dvmorris
Member
Posted 2 years ago #
Yes. It does not seem to run when making a request with curl or wget.
dvmorris
Member
Posted 2 years ago #
Any idea why this would be happening? Could it have to do with default request header setting in cURL?
Thanks,
Dave
I can only presume there's something different between the environment where your browser runs and where you run wget and curl and they're hitting different servers? Maybe /etc/hosts ?
Other than that, I don't know.
dvmorris
Member
Posted 2 years ago #
I'm running the commands from the local machine, as well as the browser.