2

I have created a cron job to run wp-cron.php for me but I am seeing in my FPM logs where it's still running. From what I understand, is that with the cron job it wouldn't be hitting FPM to create any logs.

Is there a way to trace this and figure out whats running the file?

5
  • Where did you define DISABLE_WP_CRON?
    – s_ha_dum
    Commented Mar 7, 2014 at 15:52
  • @s_ha_dum In wp-config.php
    – kel
    Commented Mar 7, 2014 at 16:23
  • Try if (DISABLE_WP_CRON) echo 'disabled'; in your theme header.php. Do you get output?
    – s_ha_dum
    Commented Mar 7, 2014 at 16:39
  • Yes, it echos disabled.
    – kel
    Commented Mar 7, 2014 at 16:42
  • What does your cron job look like?
    – Otto
    Commented Mar 7, 2014 at 20:08

1 Answer 1

3

If what you are seeing are hits to /wp-cron.php, there is nothing really that prevents a plugin or malicious bots from making a request to that file, with or without DISABLE_WP_CRON set to true, but with it set to TRUE the actual cron process should be killed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.