Option to disable wp-cron and set up crontab
Add an option to WordPress Toolkit to disable wp-cron.php execution and optionally create a real cron job.
You would have to add:
define('DISABLEWPCRON', true);
to wp-config.php and than give the admin a choice to set up a cron job with custom times (e.g. every 10Min or 6h).
See: https://www.siteground.com/tutorials/wordpress/real-cron-job/
The ability to disable wp-cron was added in WPT 4.7. Users can enable a switch on each site, disabling wp-cron execution. This will also create a scheduled task in Plesk which you can modify to change the execution frequency.
Server administrators can also choose to enable this feature on all new WordPress sites. This is done on WPT Settings screen.
—AK
-
Bernhard commented
-
Bernhard commented
Could be a switch like DEBUG Mode … but i'D prefer if we could set the intervals too depending on the site ;)
-
xokko commented
Here the official WorPress Codex:
https://developer.wordpress.org/plugins/cron/hooking-into-the-system-task-scheduler/ -
xokko commented
This is like this other suggestion, but for the Toolkit not Migrations:
https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/11465481-wordpress-cronjob-on-installation-move-to-crontab -
Huskynarr commented
WordPress has automatically fetch a cron job with each poll.
With nearly 1,000 users at the same time that it can render your server.
Even with a strong server.It is possible in the configuration to disable the automatic cron job and outsource.
http://www.inmotionhosting.com/support/website/wordpress/disabling-the-wp-cronphp-in-wordpress
This could manually insert in Plesk.
I have so imagined that one among the WordPress settings applies the default value of the cron jobs for 10 min. And you can manually select this value from every minute to every day 1x.
So as in the previous Cronjob menu but just in the WordPress configuration of jeweilgen page.That would be very relevant Performance Technically, even if only for a fraction of the customers.
Since Plesk the entries in the configuration automatically writes, you can also do this with embed and thus help many novice users and remove this annoying work administrators.
This task could possibly even a trainee working with them, because I think that this task is not particularly difficult. (Intricately she is, of course;))
It must be added only in the configuration this line:
define ('DISABLE_WP_CRON', 'true');And as a cron job you fürgt then added:
Time: User: PHP interpreter: /var/www/vhosts/domain.tld/httpdocs/wp-cron.phpThe cron job is permanently activated and starts each time you call.
As a result, that is already placed in the server weniegn users to its limit.
If the cron job is disabled in WordPress and inserts it as a cron job in the crontab this is a fundamental improvement.
When you install Plesk on this setting would be very good.