<p>You can also implement FastCGI Cache for static page caching pretty easily; check out:</p>

<p><a href="https://nystudio107.com/blog/static-caching-with-craft-cms" rel="nofollow noreferrer">Static Page Caching with Craft CMS</a></p>

CC BY-SA 3.0
2017-06-28T22:40:54.973Z
+1 more people need to know about nginx's ``fastcgi_cache``, a great gem IMO.
RitterKnight
CC BY-SA 3.0
2017-06-27T05:45:25.177Z
2017-06-27T05:45:25.177Z
andrew.welch
<p>Nothing that I'm aware of and a scan through Straight Up Craft's <a href="https://straightupcraft.com/craft-plugins" rel="nofollow">plugin directory</a> isn't revealing anything, either.</p>

<p>There are, however, some that integrate with <a href="https://github.com/onedesign/craft-fastly" rel="nofollow">Fastly</a> and <a href="http://plugins.supercooldesign.co.uk/plugin/cache-monster" rel="nofollow">Varnish</a>, where you could do all sorts of static caching strategies.</p>

CC BY-SA 3.0
2015-06-19T17:10:36.447Z
2015-06-19T17:10:36.447Z
Brad Bell
<p>Someone has recently developed a standalone static HTML caching plugin for Craft CMS which does similar to what you're after:</p>

<p><a href="https://github.com/craftapi/htmlcache">HTML Cache plugin for Craft CMS</a></p>

<p>This Craft plugin will generate static HTML files for your website. No need for Reddis/Varnish setups anymore!</p>

<ul>
<li>Improves the speed drastically: 300-1500MS to 2-50MS (depending on
server setup) if ubercache is enabled from the settings page </li>
<li>Busts the cache automatically when an entry has been updated </li>
<li>Cache duration time can be set; defaults to 3600 seconds (1 hour)</li>
<li>Active development and support through Craft's Slack</li>
</ul>

<p>NOTE: This plugin is still in beta, so please test if this plugin works as expected on a development environment before pushing to a production site.</p>

CC BY-SA 4.0
2018-10-11T03:22:54.737Z
Just note that it appears to bust the entire cache when updating an entry. If you have hundreds or thousands of pages on your site, this might be a significant downside.
Simon East
CC BY-SA 3.0
2016-04-18T02:34:57.250Z
2016-04-18T02:34:57.250Z
Tim Everts
<p>Is there an option for storing the pages generated by Craft CMS as flat, static HTML files?</p>

<p>The model used by static driver from ExpressionEngine's CE Cache add-on works pretty well:</p>

<p>Each page request hits a mod_rewrite rule, which checks to see if an HTML file for that page exists in the static cache directory.</p>

<p>If said file exists, it gets served to the browser.</p>

<p>If the file doesn't exist, the CMS generates the output, which is then saved as a cache file for the next user who hits that URL.</p>

<p>It only works in cases where the entire page can be saved, but, it's insanely fast and pretty easy to implement compared to other caching solutions.</p>

<p>... is there anything like that available for Craft CMS?</p>

CC BY-SA 3.0
2016-02-26T14:23:00.910Z
FYI: I've been working on a flat, static HTML Cache for Craft. It busts the cache after an hour or when an entry has been updated. It is currently in beta, could use feedback :) https://github.com/craftapi/htmlcache
chris
<cache>
Are there any file-based static cache options for Craft CMS?
# Are there any file-based static cache options for Craft CMS?

(Asked by: username_0 on 2015-06-19)

Is there an option for storing the pages generated by Craft CMS as flat, static HTML files?

The model used by static driver from ExpressionEngine's CE Cache add-on works pretty well:

Each page request hits a mod\_rewrite rule, which checks to see if an HTML file for that page exists in the static cache directory.

If said file exists, it gets served to the browser.

If the file doesn't exist, the CMS generates the output, which is then saved as a cache file for the next user who hits that URL.

It only works in cases where the entire page can be saved, but, it's insanely fast and pretty easy to implement compared to other caching solutions.

... is there anything like that available for Craft CMS?

**Tags:** cache
> **Comments:**
> **username_1**: FYI: I've been working on a flat, static HTML Cache for Craft. It busts the cache after an hour or when an entry has been updated. It is currently in beta, could use feedback :) https://github.com/craftapi/htmlcache  

---

## 3 answers

### Answer by username_5 on 2016-04-18. Score: 8 | Accepted answer

Someone has recently developed a standalone static HTML caching plugin for Craft CMS which does similar to what you're after:

[HTML Cache plugin for Craft CMS](https://github.com/craftapi/htmlcache)

This Craft plugin will generate static HTML files for your website. No need for Reddis/Varnish setups anymore!

* Improves the speed drastically: 300-1500MS to 2-50MS (depending on
  server setup) if ubercache is enabled from the settings page
* Busts the cache automatically when an entry has been updated
* Cache duration time can be set; defaults to 3600 seconds (1 hour)
* Active development and support through Craft's Slack

NOTE: This plugin is still in beta, so please test if this plugin works as expected on a development environment before pushing to a production site.

> **Comments:**
> **username_6**: Just note that it appears to bust the entire cache when updating an entry. If you have hundreds or thousands of pages on your site, this might be a significant downside.  

---

### Answer by username_2 on 2017-06-27. Score: 3

You can also implement FastCGI Cache for static page caching pretty easily; check out:

[Static Page Caching with Craft CMS](https://nystudio107.com/blog/static-caching-with-craft-cms)

> **Comments:**
> **username_3**: +1 more people need to know about nginx's ``fastcgi_cache``, a great gem IMO.  

---

### Answer by username_4 on 2015-06-19. Score: 2

Nothing that I'm aware of and a scan through Straight Up Craft's [plugin directory](https://straightupcraft.com/craft-plugins) isn't revealing anything, either.

There are, however, some that integrate with [Fastly](https://github.com/onedesign/craft-fastly) and [Varnish](http://plugins.supercooldesign.co.uk/plugin/cache-monster), where you could do all sorts of static caching strategies.


---

