WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] W3-Total-Cache Causing Error For Server Side Script (3 posts)

  1. john-michael
    Member
    Posted 3 years ago #

    I have a script that requires wp-load.php. The script is run from outside of the domain via cron. However, ever since starting to use the W3-Total-Cache plugin, the include_once('/path/to/WP/wp-load.php'); causes an output of the entire front page HTML in my cron email. It appears as if the include is causing a redirect.

    Is there a way to tell W3-Total-Cache to ignore the include request from this sever side script?

    Thanks,
    -JM

  2. lancehudson
    Member
    Posted 3 years ago #

    after some stumbling around it looks like you should use
    define('DOING_CRON', true);

    Good luck,

    --Xomen

  3. john-michael
    Member
    Posted 3 years ago #

    You're an absolute genius. There is no limit to your potential as a an official WP hacker and human being.

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic