Title: How your cache/precache is working
Last modified: February 7, 2020

---

# How your cache/precache is working

 *  Resolved [zey_ser](https://wordpress.org/support/users/zey_ser/)
 * (@zey_ser)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/how-your-cache-precache-is-working/)
 * I’m trying to understand do I need your plugin to improve caching because we 
   already have gzip and http headers cache. Do I correctly understand, that with
   cache enabled in your plugin you create html files with pages content and then
   instead db queries and another IO bound you read this files? Can you unfold how
   your cache/precache works in technical details?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/how-your-cache-precache-is-working/#post-12412239)
 * [@zey_ser](https://wordpress.org/support/users/zey_ser/)
 * The cache preloading functionality will go through all your pages and posts, 
   and simulate a visit by a user, allowing WP-Optimize to cache the pages before
   anyone visits them. Your first visitor will thus be served a cached version of
   the page, increasing its performance.
 * Thanks,
    Harshad
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/how-your-cache-precache-is-working/#post-12412424)
 * [@zey_ser](https://wordpress.org/support/users/zey_ser/) You are correct.
 * The way our caching functionality works – as well as most caching plugins for
   WordPress – is by saving the page and posts output to a file.
 * On the next request, we check at a very early stage if the cache exists, and 
   return that precompiled page, without having to go through the regular WordPress
   process. If it does not exist, or something tells it to not serve the cached 
   file, it goes through the normal WP process.
 * Enabling Gzip will compress the CSS, JavaScript and html files, which will result
   in a faster download.
 * Setting http headers will tell the browser to cache the static assets (CSS, JavaScript,
   Images) for a certain amount of time, saving time for subsequent requests.
 * Marc
 *  [silasveta](https://wordpress.org/support/users/silasveta/)
 * (@silasveta)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/how-your-cache-precache-is-working/#post-12594584)
 * Please tell me, when you add or change an article, the product cache is reset(
   updated)?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How your cache/precache is working’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [precache](https://wordpress.org/support/topic-tag/precache/)

 * 3 replies
 * 4 participants
 * Last reply from: [silasveta](https://wordpress.org/support/users/silasveta/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/how-your-cache-precache-is-working/#post-12594584)
 * Status: resolved