There is no reliable way to achieve what you want with the Transients API – or even, if you have been considering it, with the WP Cron system. The problem is in a nutshell: Those API systems depend on user input. If you want to know more about it, do a research, as this has been discussed a couple of times.
To have a reliable solution, you can use the real – the WP one has pretty much nothing to do with it and in my mind it shouldn’t even be called alike, but whatever – CRON system and the cronjobs you can set up with it. I’m not going into depth here, because you will find enough starting information about »How the real CRON can be used with WordPress« on the internet. As @MarkKaplun rightfully pointed out, WP CRON and real CRON can be used in conjunction to achieve your goal.
Related Posts:
- When should I be using the Transients API?
- Cache remote (HTTP) request with Transients API
- Is there any danger in deleting all transients?
- Why are transients cleared prematurely?
- Get a list of existing transients
- Storing posts social counters by using transient api
- How to save new transients if query changes?
- Integrating WP-TLC-Transients with WordPress – Where to Begin?
- Is priming a Transient Cache possible?
- What causes a transient to changes status to “Does Not Expire”?
- How to use transients and variables
- Transient storage location? database/xcache/w3Total Cache?
- How to delete transients written by fetch_feed()?
- Set Transient expiration
- WordPress transient doesn’t use the transient
- How do I reset a transient when updating a widget’s value?
- How to clear Transients on all sites in Multi Sites environment
- Is this the proper usage of creating / using a transient?
- Should I use the Transients API to temporarily hold edited attachements?
- transient or not transient
- Can Transients be used to store sensitive data?
- wp_options flooded with transient API entires
- Why Transients may not work correctly?
- How many transients is too many transients
- Synchronize Data every minute with set_transient
- Difference between get_site_transient() and get_transient()
- delete_transient on click inside a widget form
- Set_Transient to end at midnight
- Whats wrong with this transient? Not caching as expected
- Set transient with get posts error
- Clear Transients
- Unique Transients user id for Non-Logged In users
- Transient is never set. Why?
- Button to clear transients
- Set transient name
- Hacked site using transient API?
- Ajax call to transients
- Why can’t I save encrypted data in a transient?
- Doesn’t set_transient() add multiple rows with the same key?
- What would cause set_transient() and set_site_transient() to fail silently?
- Are transients garbage collected?
- How does object caching work?
- Should I use Transient API to store HTML String, or Object?
- Will it break my site if I delete all transient records in wp_options table?
- Is get_option() faster than accessing get_transient()?
- Best practices for using the transients API
- Are transients private or public?
- Using transients in conjunction with memcached
- wp-cron.php – How are WP’s Cron transients removed?
- Do WordPress’ cron’s clean up expired transients?
- Using a wildcard with delete_transient()
- Does set_transient() overwrite/update transient option with same key?
- What’s the case against transient-ing almost everything that’s mostly static?
- Does using set_transient() function can lead to MySQL problems?
- Fallback when Transient API fails
- Why does WordPress create two transients with the same name when I specify timeout value?
- How to delete cached transients from a widget instance properly?
- Fragment caching increasing database queries
- Should I store external API data in my WP database or keep it as a transient?
- WordPress transients for a shortcode
- How to purge all transient caches?
- How to delete a transient on post/page publish?
- Should the caching of WordPress menus be specific to each page?
- Long option names fail silently?
- Use Transient API to cache queries for all posts in all categories?
- Looping through posts per category gives same posts for each category
- How to make sure that only one wp_cron() runs at a time?
- Transients vs CRON +Custom Fields: Caching Data Per Post
- Transient not working for custom loops
- WP_Cron doesn’t do the job: Multisite stats
- Transient pagination not working properly
- pre_set_site_transient_update_plugins wont call on hosted webspace
- Transient / object cache maximum key length [duplicate]
- get_transient(), PHP switch(), and comparison operators
- WP_Query Performance Issues with meta_query
- Storing an XML Response (Transient)?
- wp_transients | wp_object_cache VS SESSIONS & Cookies?
- Transients API and multisite
- How can I store an image in the database with Transients API?
- What to use , set_transient, set_option or file system? [closed]
- Transient caching for wp query
- Get the timout value of a saved transient?
- Must I serialize/sanitize/escape array data before using set_transient?
- How to purge all transient caches?
- how to get the value of time left for a transient
- Transient API and caching Plugins
- How to cache posts based on $_GET? Option name is too long? Options / transients
- How does WordPress handle sessions?
- WordPress Caching – Transients API or “update_user_meta ” Cronjob?
- Web scraping using transients
- Messing up with transient API – getting flushed on refresh
- Any insights into Transient API locking, cron and threading?
- how to build (custom) stats for post views, per month
- Clearing cached plugin data if it is using an external object cache
- Can set_transient() be used in multi-site?
- Minimize database queries to user tables?
- Transient unique names
- Only a part of array is stored in transient – what could be causing this?
- Set Transient does nothing
- How to use transient in this code for related post?