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
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- How can I modify what is being output in wp_head, whether by a theme or WordPress in general?
- 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 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
- wp_schedule_event / cron_schedules – custom recurrence time not working in Plugin
- Should I add sharing buttons using a plugin or directly in my theme files?
- Posts wont expire
- Custom interval is not working
- Changing BIGINT to INT
- Prevent CSS/JS loading when plugin is not used
- How to see list of plugins
- WordPress web page struggling with performance
- How do I know which plugin uses the most resource?
- 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
- How to load plugin after page is loaded – pagespeed issues
- WordPress takes too much time (100 seconds) to load – Front end and back end
- WordPress performance – W3 Total Cache and memcached/APCu
- Cron job not firing
- After plugin options changed hook
- how to find and correct plugin query performance issues
- Correct way to perform non-cacheable DB query
- Certain actions failing when run through cron
- How to make a implement queue for scheduling tasks in WordPress?
- 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
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- Setup wp_schedule_event within a custom plugin
- Improving the perfomance of a plugin action
- Namespaced shortcode?
- Does heavy theme and plugins affect server’s response time? [closed]
- One sub site is slow while all others load fine, same theme & plugins [closed]
- What are the performance hiccups when building plugins?
- WordPress stats: OWA plugin overhead in the future
- 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]
- Plugin has added weird data in wp_options, set to autoload
- WordPress Console Application (ability to excecute a custom function via crontab only)
- Super slow plugin page (lots of error 500)
- get_edit_post_link() not working on wp-cron
- Is wp_deregister_script the best way to deal with unneeded plugins in a page?
- should i use GLOB_ONLYDIR to hook add-ons for wordpress plugin
- Minification Plugins break my website
- 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?
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Save log for imports in WordPress database – options-table, custom post type or other place?
- is there a way to preload specific images for desktop users only? (excluding mobile users)
- WP Import All Multiple Dynamic Link Imports
- reminder wp_schedule_event
- Profiling the initial PHP file, anyone, that get like 10 seconds to load
- my hook or my function wont run in the cronjob
- Cron job shedules replace?
- Scheduled cron event removed from list automatically after sometime
- Run a Change Role Cron Job on WordPress via cPanel
- Enable a Coming Soon Page while the rest of the site is accessible
- wp_schedule_event function reference
- Searched & tried a lot: Is it Possible to Eliminate Render Blocking Manually
- How to customize ‘recurrance’ of’ wp_schedule_event’?
- Is saving multiple options or saving multiple items in one option better?
- 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
- Plugin Hooks Not Shown in WP Cron Jobs
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- Plugins to generate CSS Sprites? [closed]
- Combining JS files to one script
- How to debug periodic performance issue
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Hidden Elementor sections slow down website. How to fix this? [closed]
- How can i store cache of wordpress a database request without plugins?