How to disable WP-Cron (wp-cron.php)

Today I will show you how to disable WP-Cron for faster performance and use system CRON instead. CRON jobs are used to schedule tasks at periodic fixed times or intervals. In Wordpress this is handled by WP-Cron which fires on every page load and interfere with any visitors page-request. Depending on the amount of traffic to your site using the built-in cron handler can actually start to impact page load times.

How to disable WP-Cron

To disable WP-Cron, add the following line to your wp-config.php file in your root directory right before the line which says /* That’s all, stop editing! Happy publishing. */

define('DISABLE_WP_CRON', true);

Schedule system CRON

You will need to schedule wp-cron.php from your server. The URL which needs to be scheduled is

https://example.com/wp-cron.php?doing_wp_cron

Replace example.com with your domain.

Command line

If you are familiar with the command line (ssh), add the following line to your crontab file (command: crontab -e):

*/10 * * * * curl http://example.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1

This will run wp-cron.php every 10 minutes.

cPanel

If your hosting provider has cPanel, Log in, find the section named Advanced and open Cron Jobs.

cpanel cron

Under the Add New Cron Job you can choose from predefined schedules. Add the following command (replace example.com to your domain):

wget -q -O - https://example.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

Then click “Add New Cron Job” and you are good to go.

Do you have a project for us?

Contact us

Our Services

WEB DESIGN AND DEVELOPMENT

From raw idea to a scalable product
Each website we develop is truly unique, tailor-made for your brand, product or company.

Learn more »

WORDPRESS & WOOCOMMERCE

Custom online-store, theme and plugin development
GoWild Digital leverages the flexibility of the WordPress platform to develop websites that can be easily maintained and upgraded.

Learn more »

TECHNICAL SEO AUDIT

A health check of your website
Our Technical SEO audit identifies technical errors with your website that can be hindering your performance and visibility.

Order now »

WORDPRESS SPEED OPTIMIZATION

Enhance your site’s user experience and rankings
Website speed optimization service that can help your website load at top speeds and generate more conversions.

Order now »

AD-HOC SUPPORT AND MAINTENANCE

For a fixed price
Purchase a block of support minutes to complete any tasks needed. Minutes purchased never expire.

Order now »

WEBSITE MIGRATION

We can help you to migrate your website to your new web hosting
Let us take on the heavy lifting of your next website migration to reduce your stress and to migrate your site efficiently and effectively

Order now »

Update Gone Wrong

An update broke your WordPress site?
Let us help you! Our service provides you with the fix of one error to get your WordPress website back up and running.

Order now »

Repair Hacked Website

Site hacked?
We’ll restore your website fast to help limit the downside. If it gets reinfected in the next 30 days, we fix it for FREE again.

Order now »

Quick Website Repair

Broken WordPress or PHP based website?
Our service provides you with the fix of one error to get your website back up and running.

Order now »

Our Work

Green Guide Budapest

Green Guide Budapest

greenguide.hu
Web design: Mimma Nosek (Behance)
UI/UX mentor: Júlia Tóth (Behance, Dribble)

Trilla

Trilla

trillafesztival.hu

Web design: Anuri Design Studio (Website)

Barber Bay

Barber Bay

barberbay.hu

Web design: Endre Gömöri (LinkedIn)

MOST

MOST

mostmusic.eu

Web design: Anuri Design Studio (Website)

Hungarian World Music Guide

Hungarian World Music Guide

hungarianworldmusicguide.com

Web design: Anuri Design Studio (Website)

Have a question?