https://help.superhosting.bg/en/wp-manager-cron-jobs.html
  • bg
  • en

Hosting, Domains, Cloud, Virtual Private Servers (VPS), Managed VPS, SSL Certificates

Cron Jobs - WordPress Manager by SuperHosting

Control Panel cPanel
wp cron, wordpress cron, wp-cron, wp cron job, wordpress cron jobs

info-iconMoving WordPress Cron Jobs to cPanel's cron jobs will optimize your website's resource usage and loading.

For migrating the scheduled tasks to cPanel you need to access WordPress Manager by SuperHosting -> Cron Jobs and click on Move.

Automatic actions are moved in cPanel

If you want to move back the execution of tasks to the WordPress, use the option "I want WP-Cron to be executed on every request".

Read on to understand why it is not advisable WP-Cron to run on every request.

What are Cron Jobs and How They Work in WordPress?

Cron jobs are scheduled tasks that are mainly used for managing and maintaining different applications. They can enable regular backup, system monitoring, running scripts, optimizing databases, clearing cache and many more.

Cron Jobs can be run periodically at fixed times, dates, or intervals. If you wish for a certain command to be executed every day, month or year, you should use cron jobs.

On Unix/Linux based systems you can create scheduled tasks through the cron software utility.

info-iconcPanel is using the cron application which manages tasks without affecting the hosting account applications proper functioning.

WordPress has its own job scheduler which is similar to cron app engine, but it is called WordPress Cron (API).

Information for WordPress Cron API and functions used for cron jobs creation are available in the /wp-includes/cron.php file. The wp-cron.php file is used to run and execute scheduled tasks and their related actions.

There are two types of cron jobs: tasks that are set for a certain interval or performed at a specified time.

Fixed interval tasks might be:

  • checking the WordPress version/for available system updates;
  • checking for available plugin and theme updates;
  • database optimization;

Tasks, performed at a specified time might be:

  • publishing an article at a specific time;
  • pre-scheduled email sending at a specific hour;

A WordPress Cron Job gets activated when the website is visited by a user. A job check is triggered and then a task is performed even if the scheduled time has passed. When a certain task is scheduled for a specific hour and the website is not visited by anyone, the task is not performed on time.

info-iconChecking, activation and executing the task happens when a page is loaded because a user is visiting it.

If there are WordPress cron jobs that are more complex, have resource intensive actions, this could affect negatively the performance of the site. The slowdown will be especially noticeable by the user who triggered the execution of the given cron job.

info-iconIn such cases we recommend moving the Cron Jobs from WordPress to cPanel.

This article is about: hosting services with cPanel и WordPress Manager by SuperHosting

500px270px
SuperHosting.BG
    Control Panel cPanel
  • PHP Manager by SuperHosting
    In cPanel you can change the PHP settings for all hosting plans offered by SuperHosting.BG. You can change the PHP version, enable or disable PHP modules and change PHP directives. This... »
  • How to login to cPanel?
    You could find detailed description on how to login to cPanel in the email which you have received after your hosting account was created. One way is to write your... »
  • SuperTools Available in cPanel
    cPanel offers a few special Super tools developed by SuperHosting.BG that enable you to manage more easily and quickly the content of all websites, hosted on your account. SUPERHOSTING TOOLS In the... »
  • How to Change PHP Version for a Specific Directory?
    Under PHP Manager in cPanel you can change the PHP version for the entire hosting account or for a specific directory. Below you can read how to set a different PHP version for a specific directory... »
  • Redis Manager by SuperHosting
    Redis is supported for the SuperPro and SuperHosting plans. To use Redis, you need to activate it in cPanel. Login to cPanel and select the "Redis Manager by SuperHosting" menu. Choose the amount of... »
All rights reserved © 2005-2017 , www.superhosting.bg