Loading...

How to disable your WP-Cron for better performance?

How to disable your WP-Cron for better performance?

In WordPress, the WP-Corn tables are used to schedule tasks. But, if you are getting a large chunk of traffic to your site and using built-in corn on your site then your site's speed might be affected. To resolve this issue you have to disable WP-Cron and instead use system cron for better performance.

 To disable your WP-Cron follow the below steps:

1. First, log into your cPanel.

2. Then navigate to the wp-cron.php file present in the root folder and open it.

3. Look out for the line that says, “That’s all, stop editing! Happy blogging.”. Add the code given below before this line:

define('DISABLE_WP_CRON', true);



After this, the WP-Cron will be disabled.

To schedule a System cron follow the steps given below:

1. First, log into your cPanel.

2. Click on the Cron Jobs option present in the ADVANCED section.



3. Go to  Add New Cron Job section. From here you can select the predefined schedule for cron jobs, like once per week, twice per hour, etc. Sometimes your hosting provider sets a limit on how many times you can run the cron job.



4. In the command section add the below command:

You have to change the 'domain.com' to your domain name. After that click on the Add New Cron Job button.




 That's it. You have successfully disabled your wp-cron and scheduled a system cron.


Did you find this article useful?

Related Articles

How to add password to WordPress admin directory via cPanel ? In WordPress, you can access the WordPress admin directory by logging into your WordPress admin acco...
How to fix 500 internal server error ? There is no clear-cut solution to solve the 500 internal server error. You have to try various tips ...
How to change WordPress URL using phpMyAdmin in the DirectAdmin? The WordPress URL can be changed manually, by the use of phpMyAdmin from the DirectAdmin panel. To c...
How to set up caching for your WordPress website? With the use of Caching, your website's speed can be improved as it acts as the memory and saves som...
How to protect your Site from Brute force attacks? Hackers can upload malicious malware using brute force attacks. It can cause your site to become ina...

Categories

Website Maintenance 42
Website Maintenance Knowledge Base
SEO Services 40
SEO Services Knowledge Base
Website Design 51
Website design
Google Workspace 56
Set up Google Workspace for your team. Discover how to manage a team, migrate emails, share files, work from anywhere, and set up mobile management.
Billing 25
All type of billing information
Client Area Guide 1
Client Area Features
Delegate Access 10
Articles on Access Delegation for Third-party Platforms
Password Management 5
Password Management at Aarav Infotech India Pvt. Ltd.
WordPress 63
Knowledge base for WordPress

Shopping Cart

Your cart is empty