If you are coding this, probably the best approach is not to use the transient for the value you are displaying, but a normal custom field that’s updated .
In that situation you have the transients, which will time-out and trigger the request. The result you get is checked by your code and then stored elsewhere.
You can use that field to display it on the front at all times. Whenever a transient request completes you update that field.
Related Posts:
- Is get_option() faster than accessing get_transient()?
- Best practices for using the transients API
- Clearing cached plugin data if it is using an external object cache
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- Trouble with Transient API when W3TC is activated [closed]
- How to make dynamically-generated content searchable in WordPress?
- Does using set_transient() function can lead to MySQL problems?
- Why does WordPress create two transients with the same name when I specify timeout value?
- How can I free up the memory used by update_post_meta?
- How can I render shortcode so that its not cached by Caching plugins?
- Does WordPress’s HTTP API use any caching?
- Will cron job run if page loaded is being served from cache?
- Is using WP Transients to save external data for a plugin the best/right way?
- Cache directory needed for plugin
- Make WordPress cache permanent for some pages until edited
- Storing product price data in the database
- Will setcookie work if there is a cache plugin installed?
- Maximum lifetime for nonce
- Clearing caches on plugin uninstall
- How to implement filesystem cache in WordPress
- Caching the_content calls
- Updating transient value frequently
- Service Worker Uncaught (in promise) DOMException
- Should I use wp-content/cache or [PLUGIN_DIR]/cache?
- I need to refresh page to display wp_get_current_user() : why?
- Custom Plugin Options Won’t Update
- How can I control if post updated
- Workflow for new importer plugin – your advices?
- Undefined cache functions in my custom plugin
- Plugin files not updated (cache cleared)
- Does WP REST API cache internally executed (rest_do_request) requests?
- Flash messages for not logged in users
- Update Cache on Save Instead of Clearing It?
- Cache API Images to Prevent Hot Linking
- Theme / Divi change visitor css and site logo and all site urls based on REQUEST_URI non logged in wp user
- Plugin’s “Update Now” not working – Installed in folder with random suffix
- functions won’t fire after I converted my code from procedural code to OOP
- Custom non-template page on front end fails to render
- Add custom parameter for custom user role
- Shortcode content is not showing. Only the [shortcode-tag] is showing
- Post is uncatagorized in publish_post action
- get_queried_object_id combined with wp_redirect gets wrong id
- Stuck on a 504 error
- When does global/main code of plug execute?
- Using WordPress Boilerplate (WPBP) for WP Multisite Plugin
- How to prevent wp_insert_post from creating a new post every second?
- Error Connecting to Database WHEN Installing WordPress on XAMPP [Tried All the Usual Stuff] (Pics Included)
- WordPress Filesystem create CSS-File – get Shortcode ID for Name
- WordPress5.2.3: Better File Download Plugin validation issue
- How do I make secure API calls from my WordPress plugin?
- esc_attr() on hard coded string
- How do I ensure I can loop through every enqueued script and CSS?
- Gutenberg component in a plugin admin
- Creating a return url for getting data from external api
- Always hide a page from the menu
- WordPress discards PNG file when uploading plugin file
- Hook for validating and rejecting frontend image upload
- What is the source of the $post_id in a hook argument?
- WordPress Fatal error: Uncaught Error: Call to undefined function dbDelta()
- Custom Admin Plugin – Injecting repeatable select fields (add, remove) into an Ordered List
- Does hooking into a plugin action / filter override the plugin’s function for that hook?
- Overriding the template files using a plugin for all themes
- Nested Hooks with do_action for performance reasons – safe/necessary?
- WordPress custom url without using any of the custom tags given
- Counter not working correctly
- Generate Static Page to Show Search Results/Detail for API
- User meta query using Wildcard
- How do I use a plugin to swap out the template file for a custom post type?
- WordPress with React: Saving and Using Data Collected with fetch
- use a (Polymer) web component within a plugin (or theme)?
- Custom Post not Deleting on Uninstall
- Scripts/styles not loading on cloned WP Site when logged in
- how to add security questions on wp-registration page and validate it
- Multiple instances of $opt_name in redux framework
- Don’t print customizer styles when no setting has been used
- Initializing rest endpoint issue
- Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework
- Append php file to footer
- Integrate separate web app inside wordpress [closed]
- How to avoid conflict if a plugin already have included open library?
- Can’t get wpColorPicker to work in a widget
- WordPress OOP get current user question?
- Plugin Activation Causes wp_register errors
- Load custom translation in custom plugin fails
- Add quick edit functionnality to plugin table
- How to filter an action inside class in MemberPress plugin?
- AJAX call of function containing javascript which is not loaded (Plugin development)
- XMLHttpRequest to open PHP file responds with Missing Page
- Including content into an add_shortcode() function
- Get the current post/page URL with plain permalinks
- Hide / show settings field based on other field’s value
- How to integrate plugins into block editor
- Group By in a Metaquery
- Pre-populated WooCommerce checkout fields: dropdown fields issue
- Using the same class across multiple functions
- Hide post by ‘post_category’
- jQuery dependent script ignores $in_footer bool and doesn’t work in header
- Woocommerce Product finder feature on home page
- How can I measure CPU and RAM used by my theme or plugin
- How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?