WP Super Cache Crashes PHP Cron JOb
-
I have WP Super Cache installed on a site that runs a cron job every so often to keep an inventory of products in sync. This cron job access a specific file in the plugins directory to run this and I keep getting an error that crashes my cron job when I access that file….
PHP Notice: Undefined index: HTTP_HOST in /pathOnServer/web/content/wp-content/plugins/wp-super-cache/wp-cache-base.php on line 4 PHP Notice: Undefined index: REQUEST_METHOD in /pathOnServer/web/content/wp-content/plugins/wp-super-cache/wp-cache-phase1.php on line 50 PHP Notice: Undefined index: SERVER_PORT in /pathOnServer/web/content/wp-content/plugins/wp-super-cache/wp-cache-phase1.php on line 104
This is happening because you don’t have access to the HTTP_HOST when you are running a PHP Cron job. All I need is for WP Super Cache to run on the site but I don’t want it to be active at all for one particular file or a specific plugin directory.
Any thoughts or suggestions??
Thanks much.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘WP Super Cache Crashes PHP Cron JOb’ is closed to new replies.