PHPackages                             effectivesoft/htmlcache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. effectivesoft/htmlcache

ActiveCraft-plugin[Caching](/categories/caching)

effectivesoft/htmlcache
=======================

Cache pages to HTML and boost website performance on Craft CMS 3.

1.0.16(4y ago)071MITPHP

Since Aug 21Pushed 4y agoCompare

[ Source](https://github.com/EffectiveSoftPHP/htmlcache)[ Packagist](https://packagist.org/packages/effectivesoft/htmlcache)[ RSS](/packages/effectivesoft-htmlcache/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (16)Used By (0)

HTML Cache plugin for Craft CMS 3.x
===================================

[](#html-cache-plugin-for-craft-cms-3x)

Cache pages to HTML and boost website performance.

[![img](https://camo.githubusercontent.com/b455d377bfefa376032f6c2d7455d0c5baf60160674d31719b45b320a728ac8a/68747470733a2f2f7777772e626f6c64656e2e6e6c2f75706c6f6164732f626f6c64656e2d63726166742d68746d6c2d63616368652e6a7067)](https://camo.githubusercontent.com/b455d377bfefa376032f6c2d7455d0c5baf60160674d31719b45b320a728ac8a/68747470733a2f2f7777772e626f6c64656e2e6e6c2f75706c6f6164732f626f6c64656e2d63726166742d68746d6c2d63616368652e6a7067)

This plugin generates static HTML files from your dynamic Craft CMS project. After a HTML file is generated, your webserver will serve that file instead of processing heavier and slower PHP scripts.

99% of your visitors will be served static HTML files. A cached file can be served thousands of times. That 1% could be a POST request (like AJAX forms) and btw:

- sections with a login won’t work
- the admin panel is also NOT cached

Requirements
------------

[](#requirements)

This plugin only requires Craft CMS 3 or later.

HTML Cache Overview
-------------------

[](#html-cache-overview)

Creates a HTML Cached page for any non-cp GET request for the duration of one hour (configurable) or until an entry has been updated. To work in DEV-mode: use the force option in the settings.

Configuring HTML Cache
----------------------

[](#configuring-html-cache)

If the plugin is enabled it works out of the box and no special cache tags are needed. If DevMode in Craft CMS is enabled, you will have to force enable the plugin by enabling the 'Force On' plugin setting. You can also exclude url path(s) from being cached.

Using HTML Cache
----------------

[](#using-html-cache)

HTML Cache has a settings page where you can enable/disable it and flush the cache.

If the plugin works correctly you will see the cached files in storage/runtime/htmlcache/ folder. To check the performance improvement please use the browser inspector. There you will be able to see that the loading times are improved.

FAQ
---

[](#faq)

**Q: Are all cache files deleted when updating an entry, or only the ones with a relation?**
**A:** Only related cache files will be deleted after an update. \*\*Q: The installation fails and plugin does not work. \*\*
**A:** Make sure that the folder `storage/runtime/htmlcache` is created and there are read/write permissions.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 58.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~79 days

Recently: every ~244 days

Total

15

Last Release

1768d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/da0961691c4f7fedff06c731269d4a5344c1b1357c846ab062e5074850c4b6b2?d=identicon)[effectivesoft-php](/maintainers/effectivesoft-php)

---

Top Contributors

[![boldenamsterdam](https://avatars.githubusercontent.com/u/7466604?v=4)](https://github.com/boldenamsterdam "boldenamsterdam (33 commits)")[![bragle](https://avatars.githubusercontent.com/u/43667677?v=4)](https://github.com/bragle "bragle (6 commits)")[![dueddel](https://avatars.githubusercontent.com/u/436636?v=4)](https://github.com/dueddel "dueddel (6 commits)")[![effectivesoft-php](https://avatars.githubusercontent.com/u/89518847?v=4)](https://github.com/effectivesoft-php "effectivesoft-php (6 commits)")[![jamestoot](https://avatars.githubusercontent.com/u/13592472?v=4)](https://github.com/jamestoot "jamestoot (2 commits)")[![JamesToothill](https://avatars.githubusercontent.com/u/5111122?v=4)](https://github.com/JamesToothill "JamesToothill (2 commits)")[![mrksmts](https://avatars.githubusercontent.com/u/437794?v=4)](https://github.com/mrksmts "mrksmts (1 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginhtml cache

### Embed Badge

![Health badge](/badges/effectivesoft-htmlcache/health.svg)

```
[![Health](https://phpackages.com/badges/effectivesoft-htmlcache/health.svg)](https://phpackages.com/packages/effectivesoft-htmlcache)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k69](/packages/verbb-formie)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[bolden/htmlcache

Cache pages to HTML and boost website performance on Craft CMS 3.

317.9k](/packages/bolden-htmlcache)[mmikkel/cache-flag

Cold template caches that can be flagged and automatically invalidated.

1730.4k1](/packages/mmikkel-cache-flag)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
