How to cache the results of a query and display the cached results
A More Efficient Count When querying for a count without interest in the actual content of a post, WordPress provides a found_posts property on the query containing the total number of matches – so you needn’t load every post from the database; you can query for a single post and still retrieve the total count. … Read more