Title: Cron job problem
Last modified: August 31, 2016

---

# Cron job problem

 *  Resolved [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/)
 * There is a problem with others plugin which use cron job – e.g. your plugin breaks
   cron in my plugin where I have this same schedule interval. You should change
   the function setRegularCron as it is in wp_schedule_event documentation:
 * >  To schedule an hourly event in a plugin, call wp_schedule_event on activation(
   > otherwise you will end up with a lot of scheduled events!):
 * [https://wordpress.org/plugins/wp-fastest-cache/](https://wordpress.org/plugins/wp-fastest-cache/)

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447550)
 * Another test – the problem is not only with function setRegularCron but with 
   all wp_schedule_event in your plugin 🙁
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447639)
 * I could not understand. Please contact to me via email: [fastestcache@gmail.com](https://wordpress.org/support/topic/cron-job-problem-1/fastestcache@gmail.com?output_format=md)
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447672)
 * Which part You don’t understand? You use wp_schedule_event not in accordance 
   with documentation [https://codex.wordpress.org/Function_Reference/wp_schedule_event](https://codex.wordpress.org/Function_Reference/wp_schedule_event)
 * >  call wp_schedule_event on **activation** (otherwise you will end up with a
   > lot of scheduled events!)
 * You need more details? What details? I think I wrote very simple what is wrong.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447676)
 * Please contact to me via email: [fastestcache@gmail.com](https://wordpress.org/support/topic/cron-job-problem-1/fastestcache@gmail.com?output_format=md)
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447677)
 * For what? I give You all details. Tell mi what You need more and I will contact
   via email.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447678)
 * must I add register_activation_hook(__FILE__, ‘my_activation’); ? are you talking
   about it?
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447679)
 * You must change code where You using wp_schedule_event – wp_schedule_event should
   be used only on plugin activation as it is described in documentation.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447680)
 * now I got what activation means 🙂 If we don’t set the schedule on the activation,
   more than one cron jobs cannot work at the same minute?
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447681)
 * If we don’t set the schedule on the activation then a lot of scheduled events
   will just stop.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447682)
 * a lot of scheduled events won’t work or they are deleted from cronjobs list?
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447684)
 * They will not work 😉
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447686)
 * tell me your plugin. I will make a test on my site.
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447687)
 * XMPP Statistics but You need ejabberd server to test it.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447739)
 * I tested with Crony Cronjob Manager. I added cron job via Crony Cronjob Manager
   and it works when my cronjob works.
 * By the way, I removed setRegularCron.
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447807)
 * Version without setRegularCron works okey for me, thanks 🙂

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Cron job problem’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 15 replies
 * 2 participants
 * Last reply from: [Beherit](https://wordpress.org/support/users/beherit/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/cron-job-problem-1/#post-7447807)
 * Status: resolved