Title: [Plugin: W3 Total Cache] W3-Total-Cache Causing Error For Server Side Script
Last modified: August 19, 2016

---

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

 *  Resolved [john-michael](https://wordpress.org/support/users/john-michael-1/)
 * (@john-michael-1)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-causing-error-for-server-side-script/)
 * 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)

 *  [lancehudson](https://wordpress.org/support/users/lancehudson/)
 * (@lancehudson)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-causing-error-for-server-side-script/#post-1751978)
 * after some stumbling around it looks like you should use
    define(‘DOING_CRON’,
   true);
 * Good luck,
 * –Xomen
 *  Thread Starter [john-michael](https://wordpress.org/support/users/john-michael-1/)
 * (@john-michael-1)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-causing-error-for-server-side-script/#post-1751981)
 * 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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [john-michael](https://wordpress.org/support/users/john-michael-1/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-w3-total-cache-causing-error-for-server-side-script/#post-1751981)
 * Status: resolved