WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Error Using cURL to trigger a cache hit/miss in WP Super Cache (6 posts)

  1. dvmorris
    Member
    Posted 3 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

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    Did you try the debug system in the plugin?

  3. dvmorris
    Member
    Posted 3 years ago #

    Yes. It does not seem to run when making a request with curl or wget.

  4. dvmorris
    Member
    Posted 3 years ago #

    Any idea why this would be happening? Could it have to do with default request header setting in cURL?

    Thanks,
    Dave

  5. Donncha O Caoimh
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  6. dvmorris
    Member
    Posted 3 years ago #

    I'm running the commands from the local machine, as well as the browser.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic