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

  1. john-michael
    Posted 5 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?


  2. lancehudson
    Posted 5 years ago #

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

    Good luck,


  3. john-michael
    Posted 5 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

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic