Wordpress (unmanaged) CRON interrupts product loading
-
@girish said in Wordpress (unmanaged) CRON interrupts product loading:
@imc67 You mean WP has some built-in cron jobs that require 1min interval? I couldn't find information about this, do you have any? I either need to fixed Managed WP or Developer WP accordingly.
If you set it to 5 then WP site check is complaining that there are missed events. Because either WP or plugins can create 1 minute tasks.
-
@imc67 said in Wordpress (unmanaged) CRON interrupts product loading:
If you set it to 5 then WP site check is complaining that there are missed events. Because either WP or plugins can create 1 minute tasks.
Ah ok, I think that can be worked around. I have noticed that if you install WP (both versions) and immediately click on the "Enable autoupdates" for a plugin, it will complain about cron not running. But it goes away after the first cron run. So, the workaround is maybe to run cron on package start up (have to try).
-
@girish said in Wordpress (unmanaged) CRON interrupts product loading:
@imc67 said in Wordpress (unmanaged) CRON interrupts product loading:
If you set it to 5 then WP site check is complaining that there are missed events. Because either WP or plugins can create 1 minute tasks.
Ah ok, I think that can be worked around. I have noticed that if you install WP (both versions) and immediately click on the "Enable autoupdates" for a plugin, it will complain about cron not running. But it goes away after the first cron run. So, the workaround is maybe to run cron on package start up (have to try).
I don’t use autoupdates on my WP sites.
This cron task is running every minute:
ActionScheduler_QueueRunner->run()
-
@d19dotca said in Wordpress (unmanaged) CRON interrupts product loading:
@imc67 Curious why Kinsta which is huge can get away with it at 15 minutes by default though... very strange. You'd think they'd have a whole bunch of customers having issues if that was their default and didn't work with WordPress well.
Did I remember correctly that you also use MainWP? I’m also a happy user and look there at the cron tasks there are at least 3 that run every minute.
-
@imc67 Yeah I use MainWP, haven't noticed any issues though and that's running in the Managed version where the cron is every 5 minutes I believe. Where might I check that part in MainWP?
Update: Just checked, I see only one that runs every minute, the others are much longer runs.
Of course now that I look at it, the Last Run time for the one that runs every minute was yesterday, so that's a bit strange. haha. But I've never noticed any functionality issues or anything like that so far.
-
-
Had a quick thought here... if the issue originally reported is truly caused by the cron job... well that cron job is going to run anyways right? So in other words maybe by decreasing the frequency of the cron we decrease the frequency of the issue reported, but the issue reported still in fact remains. Right? Or am I misunderstanding?
Almost seems like either A) the cron isn't related to this issue or B) there is something else that needs to get fixed (possibly at the plugin level) that isn't playing nicely with the cron / something environmental.
-
@d19dotca said in Wordpress (unmanaged) CRON interrupts product loading:
Or am I misunderstanding?
You are not misunderstanding. We sort of went off on a tangent to understand the cron situation better. The real cause of the original issue, we don't know yet.
@DeiWee If this is a setup you are OK with helping us debug, can you please contact us at support@cloudron.io ? You can just make a clone of the app and we can try to figure out what's happening to make the page stall.
-
@imc67 said in Wordpress (unmanaged) CRON interrupts product loading:
If you set it to 5 then WP site check is complaining that there are missed events. Because either WP or plugins can create 1 minute tasks.
Yes, cron
scheduled
Wordpress can be scheduled down to the minute. But they're expected to be missed. The default WP-Cron interval is "whenever the next person visits the site, run all the scheduled events that are in the past and haven't been run" (the one that Cloudron rightfully uses the WP-CLI and disables the native WP-Cron). That's pretty horrible, but that's what Wordpress installs expect the environment to be at default. So, the WP Site Check says that's notable, that wp-crons don't get run at the minute they're specified?If the WP Health Status Page actually says that, then Wordpress devs clearly think 1 minute (or a hugely popular site) is the best interval.