Updating an intensive wp_query result once daily
I am using transients for this scenarios. Result is saved to database (wp_options table) with expiration set. It’s usable if the slow load time is below some reasonable treshold … one (first) visitor will have to wait that long to render his request, every other will see saved result. $results = get_transient(‘my_results’); if( ! $results … Read more