Transients should be used for short (for varying definition of it) time caching, and they are by design not reliable. From your description it sound like you are using them in a manner they were not designed to support and therefor probably the “best” for you is to not use transients at all.
Related Posts:
- Is there a JavaScript API? How to access public and private data in JS?
- Nonces, AJAX, script variables & security in WordPress
- Why is wp_localize_script returning false?
- Get localize of a loaded javascript
- How to Object.freeze wp_localize_script
- Ajax WordPress pass post URLs
- JavaScript implementation of Gzip
- How to HTML5 FormData Ajax
- How to properly use wp.ajax.post?
- Custom PHP endpoint for a plugin’s AJAX call
- wp_localize_script $handle
- Refused to execute script from ‘***’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled
- WordPress Ajax Login without page reload
- Dynamically changing navigation links (next and previous) via AJAX
- jQuery Autocomplete not working with wp_localize_script
- Quick Edit: Selected Custom Taxonomy Not Refreshing After Save
- Vue.js + AJAX Shortcode
- Turn jQuery.ajax() request into XMLHttpRequest (vanilla JavaScript)
- Can’t seem to get wp_localize_script to work
- fetching via fetch/ajax gutenberg block data from third party
- ajax and nonce when JavaScript is in a seperate file
- admin-ajax.php HTTP400: BAD REQUEST – The request could not be processed by the server due to invalid syntax
- AJAX issue – Uncaught SyntaxError when processing Zip File
- How to localize inline script called with ajax
- WordPress AJAX Call Not Return Result
- Extending wp JavaScript base class to make a post request to a custom REST endpoint
- How to localized one js file for different actions?
- Ajaxing in functions.php
- Does wp_localize_script call a Javascript Function or Simply Pass PHP Parameters to It
- wp-admin AJAX with Fetch API is done without user
- Admin Ajax and HTML5 Formdata
- Call javascript function when category was added via ajax
- Populating content dynamically via AJAX and Advanced Custom Fields [closed]
- Help with AJAX front end comment moderation
- Woocommerce Ajax Add cart not working
- how to send Ajax request in wordpress backend
- Populate a Map at The Same Time as showing Posts via AJAX
- wp_localize_script not working on ajax response
- Ajax Modal Flickers When Opened Multiple Times
- Load JavaScript from a post that’s loading into Fancybox via ajax
- splitting the URL using jQuery
- AJAX Load more on CPT returning random posts
- How to make tabulator ajax call in wordpress?
- Refresh Markercluster after ajax call
- Admin-Ajax Error
- Making an ajax request from a different domain
- Performance optimization of tree like structure
- How do I query posts by a sub value with the API?
- Radio buttons live refresh in the customizer
- Gravity Forms closes my popup on Validation Error [closed]
- Ajax call with javascript in post content (not enqueued)
- How to add ajax url to js using wp_add_inline_script()?
- Using admin-ajax prevents regular php form submission
- wp_mail doesn’t work when logged in?
- Hide Load more Ajax button if there is no more users to load or less than the number?
- How to disable drag-and-drop upload function in Media Library?
- javascript ajax and nonce
- Making POST request with AJAX returns a 400 error (without jQuery)
- WordPress Ajax Filter
- Run javascript upon successfully set featured image
- admin-ajax.php (aborted) error when using jQuery.get
- Storing temporary data for a custom post type
- Replace link with form to pass variables to javascript / ajax
- Ajax page load without reload
- Load page HTML content through AJAX
- How to load dynamic option with ajax
- How to display contact form 7 form in vanilla js without jquery in frontend
- Get uploaded attachment width & height and attachment ID after upload them
- Updating failed. The response is not a valid JSON response. specific to my browser when I include javascript in my html
- Uncaught TypeError: Cannot read properties of undefined (reading ‘message’) [closed]
- Refresh checkout fields on add to cart with order bump
- Refresh Gutenberg with JS for it show updated post
- javascript onClick update user_meta from jquery.ajax
- How to pass value from ajax to php in no conflict mode?
- ERROR while passing data from JS to PHP via AJAX
- Ajax sometimes work and sometimes just don’t work
- Ajax is not defined
- React to AJAX adding to the page
- Download doccument on server rather than clients browser
- Javascript output now showing in custom widget
- Ajax call from Plugin using Class
- Ajax call on class returns old data
- How to safely pass post_id and user_id via AJAX to the backend (prevent user from changing it via JS)?
- Ajax show custom post data form & script
- AJAX form not working, still reloads on submit
- Create a post with REST API and adding a category
- Get post details with pure javascript ajax
- Jquery wrap permalink in a data-attribute?
- ‘Dehighlighting’ navigation once clicked
- wp_localize_script not create variable in head section
- Bad Request when adding new post via ajax form
- AJAX admin Internal 500 error Failed to Upload
- Using Javascript Callback from plugin in a theme
- WordPress wp_localize_script nonce and ajax URL
- WordPress Ajax send response on every iteration of a loop
- Running js in html code with same content
- How to get current_user_id from wordpress in node js?
- AJAX call not initializing for non-admins in WordPress
- Escaping admin_url output being passed to js (esc_js vs esc_url)
- How to submit a button automatically after every scheduled hours?