How can I turn off cron and disable implement of hook_crons in every modules in Drupal my site is Drupal 6 Thanks

  • is this related to "cache gets cleared on every cron run"? just curious Commented Oct 24, 2013 at 10:22
  • You can ensure cron is never run by simply never running cron, oddly enough. However, many modules rely on cron and if you don't execute their cron hooks your site may not be fully functional. What are you actually trying to achieve? Commented Oct 24, 2013 at 10:29
  • Oh yes, you may need to block the execution of cron.php if it is accessible externally. What sort of hosting are we talking about? Commented Oct 24, 2013 at 10:31
  • If you will not set up cron jobs in your server, cron will not work in drupal. Commented Oct 24, 2013 at 12:12

1 Answer 1


It is a good practice to run cron on your site. You might decide upon the frequency, keep it a high value but it is necessary to run cron to keep your site in healthy state.

If you are worried about loosing the caches when cron is run, you can install Cache Lifetime Options module and set Minimum Cache Lifetime to a very high value. This will make sure that your caches are not cleared on cron runs. Then you can Expire module for your cache invalidation strategy.

If you do not want to run all the hook_cron implementations but only a selected ones then you should consider using Elysia Cron module. It lets you run cron for selected modules at selective frequences.

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.