Title: Cache a random post?
Last modified: August 21, 2016

---

# Cache a random post?

 *  [jazzmofo](https://wordpress.org/support/users/jazzmofo/)
 * (@jazzmofo)
 * [12 years ago](https://wordpress.org/support/topic/cache-a-random-post/)
 * Hi, I now use the code
 * `[display-posts category="groene-smoothies,ontbijt" orderby="rand" posts_per_page
   ="2" image_size="thumbnail"]`
 * That works like a charm to show 2 random posts from 2 categories in a post/page.
   Is there also the option to cache these results for 24 hours?
 * Thanks in advance, Carlo
 * [https://wordpress.org/plugins/display-posts-shortcode/](https://wordpress.org/plugins/display-posts-shortcode/)

The topic ‘Cache a random post?’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jazzmofo](https://wordpress.org/support/users/jazzmofo/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/cache-a-random-post/)
 * Status: not resolved