You could try what wp-cron.php
does and set in your AJAX handler:
ignore_user_abort(true);
But this might cause other problems, for example when the API takes an hour to respond. 🙂
Try to log all API response time for while to see if that is really the problem.
Related Posts:
- modify all posts of a category to “no comments allowed”
- Ordering Post 2 Post admin meta box by meta from CPT
- Create Pages from Database
- How do I write this SQL statement for Posts written in last 24 hours?
- Combine tax_query and meta_query in WP_Query
- Query to change custom post type with specific category
- Mass convert MySQL data entries into custom post type?
- Calculating Bayesian average for custom post type
- Deleting Custom Post type data using mySQL command
- wpdb custom post_type problem
- Adding custom tables to WordPress
- $wpdb: Counting posts corresponding to 3 terms in 3 different taxonomies
- Insert post metadata for all posts in CPT at once if metadata no existent
- Convert simple SQL Query to WordPress query
- Assign External Database Queries to Global Variables and Make Them Accessible
- How to import a custom MySQL DB table into a WordPress custom post type
- Function causing the loop display posting more (empty)
- Proper way to display latest 5 posts grouped by post type?
- Front end access to a SQL data repository – recommended way?
- Navigate posts with different post type that are in the same categories
- Update post if exist from PHP
- I’m trying to create a custom version of the wp_list_authors function that includes custom post types
- New post from database
- Convert Custom Taxonomy Posts to Normal Posts
- How to import database table as custom post type and custom fields?
- $wpdb is queried but results don’t show
- SQL query – get ids – Advanced Custom Fields / WPeC
- Why doesnt my tag page populate with this custom post type?
- Fetch data of 2 relational Custom Post in WordPress
- Custom post type and custom taxonomy key lenght & query performance
- Why is this function so slow?
- Sql Update CPT from publish to draft and particular custom field
- Dropwdown: Get taxonomy terms from posts that share preselected terms from 3 other taxonomies
- Post that populates itself (almost) automatically using data from imported excel file
- Populate custom post type/custom fields from an external database
- Custom post order when using OR relation
- Problem with a query in custom posts
- Filtering problem
- Create a WordPress Database query to find users who purchased specific product through WooCommerce [closed]
- Assign a tag to custom post type using a query
- Remove slug from custom post type post URLs
- How to create a custom post type without letting WordPress assign a URL
- Custom Post Types, or completely custom?
- has_term or in_category for Custom Post Types
- Posts to expire (deleted) after a date
- Removing Edit Permalink/View “Custom Post Type” areas
- Custom Post Type Rewrite Rule for Author & Paging?
- How to display category information from a custom post
- Rename the insert button in media upload window
- custom sortable column
- How to embed form data within the ‘Add new post’
- Using shortcodes to parse POST request (containing the data from a front-end form)
- Getting a custom post type image using ‘get_post_custom’
- What is the impact if i ignore title and content in my custom post types CPT?
- Get the ID after WP_Query
- how to interconnect custom post types?
- Custom Post Type / Tab Limit
- How to add custom post types to normal category pages
- How to create custom boxes with text inside?
- Linking to the most recent post in a Custom Post Type
- Custom Post Type permalink shows wrong page: homepage/index.php
- using $wpdb to get custom post type with term
- Changing custom type name hides the posts
- No Permission to add new Page, Post or CPT with Admin role
- How to change “post_class()” for a custom post type?
- Using page slug in wp_query
- Meta box values not displaying in Post Edit Screen after save
- Custom Ratings for Theme, Proper way to Refactor Code and Clean up Template File
- url rewriting for custom post types
- Sort results without WP_QUERY?
- What happens to my older posts if I switch to a child theme?
- Get template part with CPT and Custom Taxonomy conditionals
- Has register_post_type() changed for WordPress 4.0
- Update custom field value
- Query Custom Post by taxonomy multiple categories
- show most viewed posts of last days by link?
- Advanced archive url structure (category, tag and date)
- custom post type tag lists and link to post
- Custom taxonomy terms as children of multiple custom post types
- Define a page to show custom post type
- check if current page is a child of a specified top level page
- Display Custom Fields Meta Box on Category, Tags and CPT
- Filter in Custom post type to find the parent post
- I want to show post details based on roles user login
- Send email to author of the post when the custom post status changes to published
- Listing all custom posts having a specific taxonomy whatever the terms
- Create a Hierarchical List of Custom Taxonomies AND Posts
- Custom post type that lets users create a set of posts?
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- Execute code only after user clicks ‘update’ button for CPT being edited
- Problem with type plugin and custom taxonomies
- Delete custom post type metadata without deleting the post in admin area
- get_pages can’t load pages with custom post types
- Filter RSS feed for custom post type to events for next 7 days only
- Display custom taxonomy posts of custom post types
- Custom Post type field don’t show in single machine
- Getting ACF relationship field information
- Get X posts with the same terms as the current post (custom post type and custom taxonomy)
- Why isn’t page attributes dropdown not showing up in a custom post type
- Query order by a numeric ACF field