Support » Plugin: W3 Total Cache » [Plugin: W3 Total Cache] W3-Total-Cache Causing Error For Server Side Script

  • Resolved john-michael

    (@john-michael-1)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • after some stumbling around it looks like you should use
    define(‘DOING_CRON’, true);

    Good luck,

    –Xomen

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

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: W3 Total Cache] W3-Total-Cache Causing Error For Server Side Script’ is closed to new replies.