Cron is your best best, and it is the right tool to perform long-running tasks in the background. If set up correctly (via CLI), it also does not interfere with HTTP, does not lock up PHP workers, has its own memory and time allocation.
If WP Cron, for whatever reason, is disabled on some hosting environment, that is a problem of that hosting environment, and not yours. You can address it in your readme or troubleshooting guide by sending them to their hosting support.
If you’re going to do a lot of background jobs, then something like Action Scheduler may also be a good fit, but it still requires WP Cron to be correctly configured or offloaded to AS completely. IIRC WooCommerce and some other big plugins bundle and use this extensively.
Related Posts:
- Building a custom REST API
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- WP JSON REST API (Ryan McCue) how to query posts with specific meta data with ‘AND’ relation?
- To Disable WordPress Rest API or Not To Disable?
- How to create gutenberg block using REST API independently or as headless way?
- Filter out results from REST API
- How to authenticate custom API endpoint in WooCommerce [closed]
- What happens when wp_cron is deactivated in WordPress?
- Updating WooCommerce variable product stock issue
- WordPress pods io – Rest API for fetching fields information for custom post type
- Reduce nonce lifespan
- Add Products to user’s ID Woocommerce
- Multisite functions to communicate with individual site functions
- Accessing plugin functionality within WP REST API
- Permission Check for REST API Endpoint Runs Twice?
- Why is wp-cron only executing on page visit?
- Remove caching from wp_remote_get calls from custom plugin
- I am getting error message on accessing menu-endpoint
- How can I capture Memberpress user info after signup [closed]
- Detect permalinks when passing querystring in REST API requests
- Custom REST API endpoint returns rest_no_route when called via wp-json permalink
- Certain actions failing when run through cron
- Does using WP-cron make the site slower for the user?
- How to save generated JWT token to cookies on login?
- wp_get_post_terms is difference obj model than the one in rest api response
- wp_remote_get() returns 403 while file_get_contents() does not
- Access WordPress data from external PHP application.
- Limit post creation by role
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- how to do login using woocommerce rest api From android
- AFNetworking incorrectly interpreted WP_Error
- How to set intervals in cron jobs?
- REST route from a plugin not working if WordPress is installed in a subdirectory
- Getting a Page via its post-name using WP REST API v2 and Postman
- WordPress REST API Plugin Development – Add Custom Endpoint
- How to execute plugin and theme updates from a web hook / endpoint?
- WordPress Console Application (ability to excecute a custom function via crontab only)
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- Custom API plugin to execute 3rd party API to retrieve data
- Switch from wp-cron to a server cron job
- WP Rest API and json_decode()
- WordPress /users/me endpoint request forbidden
- What causes wp_schedule_single_event to fire off?
- How can i find the cron jobs that run on my site and then move them to the server side?
- Seperate plugin and theme files
- Change Dashboard URL from wp-admin to wp-admin/index.php
- WordPress cron job running more than once
- WordPress Media Library Folders + Custom Linux Server Hosting
- wc_get_template_part doesnt display the content [duplicate]
- WordPress REST API: Query media files attached to a custom post type
- I’m receiving the following error using the below code: Uncaught Error: Cannot use object of type WP_REST_Response as array
- WP Import All Multiple Dynamic Link Imports
- Cron: Update four post at Hour
- How to send SMS notification to customer after click on submit?
- Activate Plugin Automatically After Set Time
- Escape commas in REST API
- How to authenticate via API to allow writes/updates
- Do i need to use a plugin for third party api integration?
- Adding Custom Endpoint in WordPress Rest API
- Cron task gets removed from the schedule
- One WooCommerce Store to multi distributor sites
- Custom REST API POST Endpoint Not Working, 404 Error
- Getting all woocommerce products from REST API call in plugin
- is it possible to fetch data from a remote api while admin is writing a new post?
- add tags to wordpress post using REST API
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- CRUD from WordPress to Business Central 365 through OData REST API
- my hook or my function wont run in the cronjob
- Cron job shedules replace?
- Modifying server’s response to API endpoint
- Can’t access 3rd party API, code works on local server but not on wordpress
- Is it possible to custom set query for a WordPress REST API response?
- How can I add a permissions callback to the REST API index pages?
- WP_CRON issue with UTC and local time
- Run a Change Role Cron Job on WordPress via cPanel
- Better way to run heavy scripts using WordPress database
- wp rest api (v2) filter not working (404 error – rest_no_route)
- WordPress PHP error getting posts from another wordpress blog
- Cron job emails blank
- custom REST endpoint not passing body of POST request to callback
- Fetching WP.me shortlinks for posts using WP Rest API
- Upload image to wordpress using ionic/cordova with WP REST API V2
- WP Rest API v2.0 user profile update issue
- WordPress crob job performance
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- Filter custom post type returned from REST api
- My wp_update_nav_menu action is firing twice
- WordPress REST API Visual Composer Shortcodes
- Update post meta Rest Api
- WordPress REST API filter on blank custom ACF
- WooCommerce REST API aborts connection [closed]
- How to update a lot of posts on my WP site with additional content?
- Block Root REST API Route using custom &/or iThemes
- Accessing Correct Database to Create REST API Endpoint
- Is it a good idea to restrict the REST API
- REST API – filters not working inside plugin class
- i need to resive data external api and show user
- WordPress “wp cron event run” as Siteground cron job
- Get list of outdated plugins in the rest api?
- Cron Job not working