If it’s a one-time maintenance issue then run the code manually at a time you chose.
If it’s a periodic maintenance task that might be heavy, use unix cron.
Otherwise, wp-cron can be used. You’re probably using it more than you know already. This plugin is great for monitoring wp-cron.
Related Posts:
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- Schedule WordPress Auto-Updates to only run during business hours
- What happens when wp_cron is deactivated in WordPress?
- wp_schedule_single_event function not working
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- Why is wp-cron only executing on page visit?
- wp_schedule_single_event not working: cron job is triggered but nothing gets executed
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- How to set intervals in cron jobs?
- Switch from wp-cron to a server cron job
- What causes wp_schedule_single_event to fire off?
- WordPress cron job running more than once
- Cron: Update four post at Hour
- Activate Plugin Automatically After Set Time
- WP_CRON issue with UTC and local time
- Better way to run heavy scripts using WordPress database
- WordPress Cron function is not working
- WordPress crob job performance
- Adding custom cron_schedule prior to wp_schedule_event
- WordPress “wp cron event run” as Siteground cron job
- Cron Job not working
- Which approach for managing automatic updates would be more robust?
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- Is there a maintenance mode in WordPress core?
- How can I reduce the amount of files loaded/included per plugin?
- For performance is it better to build custom functionality into the theme or a plugin
- Multiple plugins vs combined one
- How to make sure a wp-cron job runs
- How do I email a new page password to somebody every month?
- WordPress tips for speed and performance [closed]
- Do Plugins effect site loading time?
- Updating WooCommerce variable product stock issue
- Long running action from plugin
- Should I add sharing buttons using a plugin or directly in my theme files?
- Posts wont expire
- Custom interval is not working
- How to use wp-ajax in wp-cron
- Under which circumstances is the .maintenance file not deleted?
- WordPress shortcodes & performance
- Prevent CSS/JS loading when plugin is not used
- How to see list of plugins
- WordPress web page struggling with performance
- action-scheduler vs wp-background-processing
- Remove obsolete plugins artifacts from database tables
- How to limit WordPress pages during updates?
- prettyPhoto media loading very slowly in Chrome
- WordPress takes too much time (100 seconds) to load – Front end and back end
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- WordPress performance – W3 Total Cache and memcached/APCu
- Cron job not firing
- how to find and correct plugin query performance issues
- Correct way to perform non-cacheable DB query
- Certain actions failing when run through cron
- Will Gutenberg Have a Negative Impact on Page Speed?
- How to make a implement queue for scheduling tasks in WordPress?
- Automatic plugin updates not working
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- Cron Job not working in plugin
- Namespaced shortcode?
- Does heavy theme and plugins affect server’s response time? [closed]
- What are the performance hiccups when building plugins?
- Performance impact with inactive plugins? [duplicate]
- How to see which sites use my installed plugins (wordpress multisite)
- (WordPress 5.8.3) Function.php or a plugin for better performance? [duplicate]
- get_edit_post_link() not working on wp-cron
- get_users(); Is an Undefined Function When Used in Cron Job
- Plugin scheduled event not working
- Profile / benchmark wordpress on apache?
- should i use GLOB_ONLYDIR to hook add-ons for wordpress plugin
- Minification Plugins break my website
- I’m looking for a plugin to execute a specific task a certain time
- Offloading cron jobs
- How can i find the cron jobs that run on my site and then move them to the server side?
- How to customize maintenance mode notification in wordpress?
- Can/should we delete wordpress cron jobs with no action?
- Save log for imports in WordPress database – options-table, custom post type or other place?
- “Disable” specific plugins on certain pages
- WP Import All Multiple Dynamic Link Imports
- How to remove Unused CSS From a WordPress Theme?
- Cron task gets removed from the schedule
- get_posts query results out of order but shows correct in php snippets plugin
- Cron job shedules replace?
- Scheduled cron event removed from list automatically after sometime
- Cron job emails blank
- wp_schedule_event function reference
- Searched & tried a lot: Is it Possible to Eliminate Render Blocking Manually
- Coming soon pages with rest of site in maintenance mode
- How to customize ‘recurrance’ of’ wp_schedule_event’?
- API calls on plugin activation or init?
- Very Slow loading. Plugins report provided by P3 included
- Using a Cron Job to dynamically populate a field ONCE, and then making the field blank the next time someone visits page
- Plugins to generate CSS Sprites? [closed]
- Eliminate Render blocking CSS?
- How to debug periodic performance issue
- Is option_active_plugins actually doing anything useful?
- Can’t update plugins in WordPress, system returns -1
- How can I wordpress cache a database request with no existing plugin?
- When to store store plugin options as a single database record?
- WordPress Website is very slow after migration
- Long running tasks in a plugin: wp-cron vs REST API callback [closed]