XF 2.3 Adjusting Cron Jobs

Senkusha

Member
Is there a way I can manually adjust the time a Cron job runs? When I look at Cron Entries, I see the following message, and I can not edit the values I wish to.

Only a limited number of fields in this item may be edited.
 
You could put this into config.php:
Code:
$config['development']['enabled'] = true;

Change the values. Save it. Then remove it from config.php so that something else doesn't erroneously get changed later on.

Your changes will be saved, but I'm not entirely sure if this is the correct way to do it. as opposed to creating an add on that would update the cron job(s).

The best way is probably copying the old values to a new cron job, changing the time, and then disabling/retitling the old cron job.

This way, you have a backup if something goes wrong.

I.e., Copy all the values of Update user trophies to NEW: Update user trophies with the new times, then disable Update user trophies.
 
Last edited:
It took me a minute to find the config.php file. It's surprisingly short! However, adding that one setting, did allow me to tweak the time I needed to. I reverted the config back to original and the entry in the database is corrected still, but now I can no longer tweak the values, so this was an extremely easy hack to do.

I'll give this a test tonight to see if my job runs at the appropriate time.

Thank you!
 
You reallly shouldn’t mess with development mode unless you know exactly what you are doing.

Your change will not persist Add-on upgrades / rebuilds and may affect your abblitzen to properly upgrade the affected Add-on.

The proper way to change cron execution times would be to disable the existing entry and create a new custom one.
But normally there is no need to modify execution times anyway.
 
Back
Top Bottom