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
- What happens when wp_cron is deactivated in WordPress?
- Reduce nonce lifespan
- Add Products to user’s ID Woocommerce
- Multisite functions to communicate with individual site functions
- REST-API: extend media-endpoint
- Accessing plugin functionality within WP REST API
- Permission Check for REST API Endpoint Runs Twice?
- 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
- Does using WP-cron make the site slower for the user?
- 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
- Ability to make API calls out of WordPress as well as executing SQL?
- Access WordPress data from external PHP application.
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- Set plugin-values when creating post via REST-API
- how to do login using woocommerce rest api From android
- AFNetworking incorrectly interpreted WP_Error
- Access WP_REST_Server from within plugin namespace
- How to set intervals in cron jobs?
- REST route from a plugin not working if WordPress is installed in a subdirectory
- Plugin retrieving results even after uninstallation
- 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?
- REST API can’t get the response manually
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- 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
- I’m looking for a plugin to execute a specific task a certain time
- 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
- 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
- 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?
- 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?
- WP Rest Api GET method restriction on route, but POST method also works
- Showing how many times is plugin activated or deactivated
- 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?
- How to get data from a private API and add it to wordpress 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
- 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
- Sending post data over REST API, how to parse shortcodes in post_content?
- WordPress crob job performance
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- how to know that a wordpress plugin support using API?
- How can I send api calls from my plugin?
- 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?
- 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
- How prevent STDOUT of Plugin_Upgrader->upgrade(…)?
- Get list of outdated plugins in the rest api?
- Fetch the CSS of a resource (page/post/etc)