> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.xynta.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Disabling wp-cron.php for Better Performance


* [Why disable wp-cron.php?](#3-why-disable-wp-cronphp)
* [Disabling wp-cron.php](#3-disabling-wp-cronphp)
* [WordPress Hosting (Plesk)](#3-wordpress-hosting-plesk)
---

### Why disable wp-cron.php?

`wp-cron.php` runs every time someone visits your WordPress site. For small to medium websites, this usually isn't an issue.  

However, on more heavily visited websites, it can cause performance issues because the file is triggered much more often.
---

### Disabling wp-cron.php

Follow these steps:

1. Open your website’s `wp-config.php` file.
2. Add the following code **right before** the line `/* That’s all, stop editing! Happy blogging. */`:

```
define('DISABLE_WP_CRON', true);
```

3. Then set up a cronjob that automatically runs wp-cron.php every 15 minutes ( */15 * * * *).
📖 **More info:** [Setting up a Cronjob (Web- and Reseller Hosting)](/en/article/setting-up-a-cronjob-edz1dn/)

Use the following command:

```
wget -q -O - https://voorbeeld.cc/wp-cron.php?doing_wp_cron >/dev/null 2>&1
```

||| 📌 Important: Replace `voorbeeld.cc` with your actual domain name.
---

### WordPress Hosting (Plesk)

Follow these steps if you have a WordPress Hosting package:

1. Log in to https://[servernaam].srvnl.nl:8443.
📖 **More info:** [How to find out which server you’re on](/en/article/how-can-i-find-the-server-name-of-my-hosting-package-acx1d4/)

2. In the right menu, click **WordPress**.
3. Find the WordPress installation where you want to disable WP_CRON.
4. Under the **Toolkit** section, enable **Take over wp-cron.php**.

wp-cron.php will now no longer be triggered on every site visit but will run in the background as a scheduled task (cronjob).

||| 📌 Important:

* Replace `voorbeeld.cc` with your actual domain name.
* Replace `[servernaam]` with the server your hosting package is hosted on.
