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
- 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
- Difference Between Filter and Action Hooks?
- framework for plugin/theme options panel? [closed]
- Cache remote (HTTP) request with Transients API
- How to validate custom fields in custom post type?
- How to Use Checkbox in Custom Option Page Using The Setting API
- Get List of Registered Meta Boxes and Removing Them
- How should one implement add_settings_error on custom menu pages?
- Uninstall script for a plugin in Multisite
- What is the difference between esc_html and wp_filter_nohtml_kses?
- Customizing the 3.5 “Add Media” popup (Backbone.js)
- Explanation of the “posts_join” and “posts_fields” filter hooks?
- Add a jQuery function to admin pages
- Including file or library from other plugin
- Why isn’t the Settings API designed to work for plugins using custom admin menus? [duplicate]
- Is there any reason only 1 (my) IP would be added to this table using $wpdn->insert?
- Plugin activation error due to unexpected output
- How to store data for posts/pages built with drag-n-drop builder?
- WordPress Admin Post Type Table Class Filter Hook
- How to get the ID of the currently logged in user?
- Extend a class plugin
- Using a Shortcode to Replace Themes Stylesheet?
- Where should I put “run once” plugin pages?
- Slow WP_query due to nested wp_query. Need Suggestions
- Plugin Development Output
- How to modify product page for Jigoshop
- Is @wordpress/env locked to node v14 or can I also use node v16?
- Securing/Escaping Output of file content – reading via fread() in PHP
- Intermittent database errors when accessing WordPress database
- How to create a “View” page for entry in add_menu_page wordpress admin area (CRUD operation)
- what is the standard ulr for wordpress plugin development?
- Customize WooCommerce my account dashboard through plugin
- Create a custom capability to allow an ‘Editor’ to edit only ‘Subscriber’ users
- global $current_user not current user
- How do I link to a php file in my plugin directory?
- How to create a page with a form programmatically in WP?
- jQuery instantly executes (a button click and css change) on load
- Meta box on options page save form problem
- How to add support for caching plugins for my own plugin?
- How to make my shortcode load scripts and styles, from within the plugin?
- Class cannot be found, but it’s available in the file, I get: Fatal Error: Uncaught Error: Class ‘Blocks\Base\Activation’ not found
- how to change image of jquery slider plugin
- Sending an SMS on new order placed – WooCommerce
- Where to use nonce
- How to show parents of current page category, excluding the category?
- get_avatar filter in WordPress 4.4, how to filter properly
- How to use a WP_Customize_Control outside of the Customizer?
- How to make a cronjob type plugin
- How do I debug an error that a plugin is causing?
- Update plugin settings option_name for big plugin update
- What could cause a WP Option to get truncated?
- Simulating timeout is not working
- How to get inserted row IDs for bulk/batch insert with wpdb query?
- BuddyPress and namespacing
- Pull commentdata for pre_comment_on_post from comment_post_ID
- Woo-commerce: Adding additional page sections using a child theme
- Get the post ID only off single page
- How to get html tag ids from template?
- Bootstrap collapse in custom WordPress widget
- Page reload occurs before request finishes
- PHP Fatal error when using plugin_basename
- How to Rewrite WordPress URL for a Plugin
- How to Prove Ownership of plugin [closed]
- Declaration of mandoe_menu_walker::start_el(&$output, $item, $depth, $args) must be compatible with Walker::start_el(…)
- Reading the inside of
- WordPress, GIT, Renamed Plugin Dir + files – Working Code now Broken [closed]
- get_term_by() returning null on plugin