Answers.Body: <blockquote>
  <p>will they experience a slow page load while the cache is being regenerated?</p>
  </blockquote>
  <p>That one. After a cached item is expired, the next person to request that item will cause it to regenerate and take any performance penalty that involves.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-08T00:13:16.100Z
Answers.Text: Got it—thanks! Any way to change that behavior? I'd like to cache for shorter periods without users randomly experiencing slow page loads.
Answers.UserDisplayName: David Jones
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-08T00:15:19.233Z
Answers.Text: At that point, you'll probably want to look into something like https://plugins.craftcms.com/blitz for caching and cache warming.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-08T00:11:40.787Z
Answers.LastActivityDate: 2021-06-08T00:11:40.787Z
Answers.UserDisplayName: Brad Bell
Body: <p>I've always been unclear on this (it would be nice to include in the documentation). Let's say I use a cache tag like so:</p>
  <pre><code>{% cache for 1 hour %}
  </code></pre>
  <p>After an hour has passed, will the next user to load the page receive the cached version while the cache is being regenerated, or will they experience a slow page load while the cache is being regenerated?</p>
  
Tags: <cache>
Title: Is cached content served while the cache is regenerating?
ThreadText: # Is cached content served while the cache is regenerating?
  
  (Asked by: username_0 on 2021-06-08)
  
  I've always been unclear on this (it would be nice to include in the documentation). Let's say I use a cache tag like so:
  
  ```
  {% cache for 1 hour %}
  
  ```
  
  After an hour has passed, will the next user to load the page receive the cached version while the cache is being regenerated, or will they experience a slow page load while the cache is being regenerated?
  
  **Tags:** cache
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-06-08. Score: 1
  
  > will they experience a slow page load while the cache is being regenerated?
  
  That one. After a cached item is expired, the next person to request that item will cause it to regenerate and take any performance penalty that involves.
  
  > **Comments:**
  > **username_0**: Got it—thanks! Any way to change that behavior? I'd like to cache for shorter periods without users randomly experiencing slow page loads.  
  > **username_1**: At that point, you'll probably want to look into something like https://plugins.craftcms.com/blitz for caching and cache warming.  
  
  ---
  
  