Title: Cache Storage Location
Last modified: February 19, 2021

---

# Cache Storage Location

 *  Resolved [David](https://wordpress.org/support/users/miladk/)
 * (@miladk)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cache-storage-location/)
 * Hello,
    Where is the cache stored? In the database? I’m asking this because we
   have more than 20K posts and i want to know where the cache is stored and how
   much space it will generate for 20K posts. Also will be the cache purged or is
   it stored without any expiration time? If yes, how and when will it be purged?
 * Thank You

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cache-storage-location/#post-14077837)
 * The cache is stored in meta fields for each post. Each display of related posts
   has one entry against its name. So if you use the automatic and the widget, you’ll
   have two cache entries.
 * There are two types of caches: The full HTML output or just the post IDs. The
   latter is smaller size.
 * Cache has an expiration time. By default it is a month, but you can [override it](https://webberzone.com/blog/contextual-related-posts-v3-0-0/#improved-caching).
 * It is purged if the time is expired but is triggered only if the post with the
   expired cache is loaded.

Viewing 1 replies (of 1 total)

The topic ‘Cache Storage Location’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/cache-storage-location/#post-14077837)
 * Status: resolved