So, after one minute of more thinking, there is an easy solution, although i did not try it myself:
$transient="_transient_timeout_" . $_your_transient_name;
$transient_timeout = get_option ( $transient );
you should be ready to go with this.
Another Way throught the database would be:
$transient="_transient_timeout_" . $_your_transient_name;
global $wpdb;
$query = 'SELECT option_value FROM ' . $wpdb->prefix . 'options WHERE option_name=" . $transient;
$transient_timeout = $wpdb->get_var( $wpdb->prepare( $query ) );
the returned value is a timestamp, but i”m sure you know how to handle it from here.
Related Posts:
- Add Hook for clearing transient when post is added
- What is the best way to cache pages and queries in WordPress?
- How to display SQL query that ran in query?
- How to Use Wildcards in $wpdb Queries Using $wpdb->get_results & $wpdb->prepare?
- wpdb get posts by taxonomy SQL
- Multipart/formatted MySQL query problem
- How to delete a transient on post/page publish?
- Transient not working for custom loops
- WordPress creating excessive joins on meta_query with search
- cron job to auto delete posts of a specific post type older than x days
- Are database queries created using WordPress filters protected from SQL injection?
- Get posts by category with pure SQL query
- Difference between fragment caching and wp_cache
- Custom query to get terms from post ids
- How to remove duplicate query on page load or make them cacheable
- How many queries are normal to execute on a WP site?
- What’s wrong with my $wpdb prepare?
- Why a URL with a query is always slower than that without a query?
- How do I see the mysql query generated by get_posts( $args )?
- sql select query in wordpress ‘page’ [closed]
- problem with sql query in wordpress plugin
- Attempt to improve WP search, can someone check my SQL query?
- wpdb query problem to access previous 3 days posts
- I can’t figure out what’s wrong with this statement. $wpdb->query update
- Transient api Caches confused
- Custom Query – Based on user input
- how to insert missing tags into the posts through mySQL?
- How to write update query in WordPress to expire transients
- $wpdb->prepare affecting the query?
- WordPress SQL search, how to handle SQL Injection?
- exclude pingbacks from wordpress SQL query
- prepare function sql safe method
- WordPress SQL query to tag all posts containing a specific word on title
- Select column name dynamically mySQL Query
- How do I query for posts by custom meta and those that have been stickied?
- Change pure SQL database query to WordPress post query?
- Cannot get sql request from Query object?
- I want to get on those users their meta value are like “AGENT” .. but this query is not working
- Display data from phpMyAdmin with WordPress
- Hook into the Admin Dashboard and redirect users
- SQL to Query the db and return all posts and it’s metas
- SQL query to delete users with multiple meta keys and comments
- Nested select statements not working
- Is there any way to get all custom posts and all custom terms with it’s meta in few queries?
- Speed up search query that searches in post meta?
- Are there any best practices for creating a Like/Favourite feature in WordPress using custom MySQL tables and without any plugins?
- Fastest and most efficient SQL query to check if UID exists
- How to make MySQL search queries with quotes
- How i make a custom sql query for Woocommerce
- $wpdb query for price in custom field value
- Run an update query in a function
- How to display a specific category using a custom Query in WordPress?
- Slow query when joining wp_posts with a lookup-table?
- Should I use transients for these API call results?
- Wpdb generates too many queries
- learn to run wpdb class
- SQL Query : how copy all tags of post into their post content in wordpress by sql query
- Where can I find the SQL to get the most used information by wordpress database?
- Custom Query for wp_posts using wp_postmeta
- 3 queries to update WordPress
- How can I create a meta_query with an array as meta_field?
- What SQL Query to do a simple find and replace
- Query multiple meta key values?
- How to Optimize WP site for millions of posts
- How does object caching work?
- Should I use Transient API to store HTML String, or Object?
- Is get_option() faster than accessing get_transient()?
- Cache remote (HTTP) request with Transients API
- How to get comments by post ID?
- Is there any danger in deleting all transients?
- Is there a way to list all used/unused WP templates?
- Differences between wpdb->get_results() and wpdb->query()
- How do I cache (core) API requests?
- Best practices for using the transients API
- Is there a way of increasing the speed of this query?
- Get all image from single page using this query
- How can I query all users who registered today?
- Get Terms by IDs with IDs order
- Using transients in conjunction with memcached
- Reversing the order of posts AFTER the query is performed
- what are the numbers between curly brackets in search query
- simple sql query on wp_postmeta very slow
- Using WordPress public query variables
- How to rename a custom field?
- When/why does ‘$query->get( ‘tax_query’ );’ return empty?
- Storing posts social counters by using transient api
- Using a wildcard with delete_transient()
- How to get link and title of next and previous post on single page
- Create pagination and order according to alphabet
- How to List Events by Year and Month Using Advanced Custom Fields?
- Is there any difference between hooks posts_where with posts_join and posts_search performance wise?
- How to organize and cache additional data associated with terms?
- wordpress query – orderby child post date
- How many WordPress SQL Queries per page?
- How to display Section for certain time
- Add multiple value to a query variable in WordPress
- Search custom post type by meta data
- Custom query_var causes displaying posts archive on front page
- Slow wp_enqueue_media()
- Fragment caching increasing database queries