• Skip to primary navigation
  • Skip to main content

Managed WordPress Security for Pennies a Day. Call (619) 479-6637

Managed WordPress Security with Heart

MENUMENU
  • Why HackGuard.com? Why Choose HackGuard.com?
  • HackGuard.com WordPress Managed Services Rates WordPress Managed Services Rates
  • HackGuard.com Articles HackGuard Articles Library
    • Hack Guard Customer Testimonials
    • Top 20 WordPress Plugins to Avoid
    • Why Should I Maintain My Own WordPress Website’s Backups?
    • How to Improve Junk Email Filtering at Gmail
    • WordPress 6.0.3 Security Release – Updated?
    • About that “Weekly jQuery Migrate Status Update” email
    • How to Change a WordPress User from Subscriber to Administrator Role
    • WordPress 4.9.3 – Going into the tunnel and never coming out…
    • How Do I Migrate WordPress to a Different Domain Name?
    • Community Blogging: A Short Guide
    • WordPress Troubleshooting and How to Fix WordPress Errors
    • Is My Web Host Secure? Maybe not…
    • How to remove the subdirectory name from your WordPress website address
    • How can I improve the performance of my WordPress website?
    • How can I improve the performance of my WordPress blog (Part 2)
    • Protecting WordPress Against Brute Force Attacks
    • How do I reset my WordPress password?
    • How To Clear Cron Jobs in WordPress
    • xmlrpc.php and Pingbacks and Denial of Service Attacks, Oh My!
    • Free Website Monitoring Services, well, mostly free...
    • How to choose a secure web hosting company for a WordPress website
    • WordPress 404 Page Setup - Do You Have Five Minutes?
    • Can mod_pagespeed Improve Page Load Speed (external link)?
    • Yoast WordPress SEO Settings and Recommendations
    • Is Your Mom Missing Her BUMM?

How To Clear Cron Jobs in WordPress

If you’ve noticed your website has grown slower over time for no apparent reason, scheduled tasks just may be the hidden reason why.

WordPress scheduled tasks use Cron, a time-based job scheduler in Unix. Stale, not executed Cron jobs may stack up, causing database bloat and slow loading of your website.

The reasons why this may occur are varied. Badly coded plugins, an improperly set up manual Cron job for wp-cron.php, and scheduled tasks left behind after deleting a backup or security plugin are just a few reasons why queued Cron events may stack up on you unexpectedly.

[ Key Takeaways
The article discusses that a slow website can be caused by the accumulation of stale and not executed Cron jobs in WordPress, which is a time-based job scheduler. The problem can be caused by badly coded plugins, an improperly set up manual Cron job, or scheduled tasks left behind after deleting a plugin. The article suggests using a plugin such as FFF Cron Manager, Cron View, or WP CRontrol to check the WordPress Cron list and clear any not executed tasks. ]

 

What are scheduled events in WordPress?

Scheduled events are tasks like those run by the Disqus plugin; security and backup plugins; and many others.

From the WordPress.org Codex, “Function Reference/wp schedule event“:

Schedules a hook which will be executed by the WordPress actions core on a specific interval, specified by you. The action will trigger when someone visits your WordPress site, if the scheduled time has passed. See the Plugin API for a list of hooks.

 

Do I have a problem with Cron events?

WordPress Cron

 

Luckily we have a plugin (or three) for that. Try any of the below:

  • FFF Cron Manager
  • Cron View
  • WP CRontrol

If after checking your WordPress Cron list, you find you’ve collected thousands of not executed tasks over time, the solution is relatively easy. Use any of the above plugins or run the MySQL command show below to clear them.

 

My Cron list is so long I can’t delete them with a plugin, what next?

Watch the “How to Clear Your Pending WordPress Cron Tasks in phpMyAdmin (in 14 seconds)” video below.

After logging into phpMyAdmin, enter the text below as shown in the video above, then click the “Go” button to complete the removal of all current Cron tasks:

UPDATE wp_options SET option_value = '' WHERE option_name = 'cron';

 

Once I clear all of the Cron tasks from my database then what?

Start by checking your website to verify all is loading. If all goes well, you may notice a snappier WordPress Dashboard and site loading. You’re welcome!

Though be sure to re-check your WordPress Cron list again in 24 hours. If something within your site remains misconfigured and continues to cause scheduled tasks to stack up as they had before, you’ll need to work that issue next to prevent the re-bloating of your database in future.

 

And Enjoy!

I’ve posted a few related article links below. If you have questions just pick up the phone and call anytime, Jim Walker, The Hack Repair Guy, (619) 479-6637

  • How do I reset my WordPress password?
  • WordPress Troubleshooting and How to Fix Common Errors
  • Protecting WordPress Against Brute Force and Denial of Service Attacks

 

 

Share me:

  • Tweet
  • Email
  • Print

Like this:

Like Loading...

Filed Under: Call (619) 479-6637 Tagged With: obsolute cron jobs, pending cron tasks, scheduled tasks, WordPress scheduled tasks

Reader Interactions

Comments

  1. Luke Cavanagh says

    November 14, 2018 at 11:45 am

    wp cron event list
    wp cron event delete

    Reply

Please feel free to comment via WordPress, Twitter, Facebook or Google+ Cancel reply

Proactive WordPress Security Management for Pennies a Day™

© Copyright 2022 HackGuard.com™, HackRepair.com™,
The Hack Repair Guy™, Hack Repair Guy™
Copyright and Trademark Statement | Privacy Policy

Call HackRepair.com for website security help, (619) 479-6637.
Content Approved By Jim Walker, The Hack Repair Guy
%d bloggers like this: