<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>

CC BY-SA 4.0
2021-06-08T00:13:16.100Z
Got it—thanks! Any way to change that behavior? I'd like to cache for shorter periods without users randomly experiencing slow page loads.
David Jones
CC BY-SA 4.0
2021-06-08T00:15:19.233Z
At that point, you'll probably want to look into something like https://plugins.craftcms.com/blitz for caching and cache warming.
Brad Bell
CC BY-SA 4.0
2021-06-08T00:11:40.787Z
2021-06-08T00:11:40.787Z
Brad Bell
<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>

<cache>
Is cached content served while the cache is regenerating?
# 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.  

---

