Quantcast
Channel: wp-super-cache – WordPress.org Forums
Viewing all articles
Browse latest Browse all 3480

ElFlamingoDiablo on "Problem with WP Super Cache"

$
0
0

Hello!

I have got a big problem with the wp super cache when creating a cron job. I have made the cron job via the parallels panel and the cron job calls a php file with the command env php -q -d memory_limit=1024M myphpfile.php.

When i call this php file via a browser everything works fine, but when the file is called via the cron job I get the error message:

WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory.

I looked into my wp-config.php file and the constant 'WPCACHEHOME' is defined and is pointing at the proper directory:

define( 'WPCACHEHOME', ABSPATH . 'wp-content/plugins/wp-super-cache/');

I don't understand why the php file works when I call it via the browser, but not when I call it via the cron job. Can somebody help me please?


Viewing all articles
Browse latest Browse all 3480

Trending Articles