PHPackages                             rias/craft-static-cache - 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. rias/craft-static-cache

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

rias/craft-static-cache
=======================

Full-page static caching for Craft CMS.

120[2 PRs](https://github.com/riasvdv/craft-static-cache/pulls)PHPCI passing

Since Jun 15Pushed 1mo agoCompare

[ Source](https://github.com/riasvdv/craft-static-cache)[ Packagist](https://packagist.org/packages/rias/craft-static-cache)[ RSS](/packages/rias-craft-static-cache/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (6)Used By (0)

Craft Static Cache
==================

[](#craft-static-cache)

[![Latest Version on Packagist](https://camo.githubusercontent.com/de7ba6fc90fd0e3acf0a2b9f169abae1d8d1f54f87f9c76cf07cbf11ee953b4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726961732f63726166742d7374617469632d63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rias/craft-static-cache)[![Total Downloads](https://camo.githubusercontent.com/d4099f37915ee4bd748c3ceff72e3490dd8fa25fe11e13746526b4cfa76773a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726961732f63726166742d7374617469632d63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rias/craft-static-cache)

Full-page static HTML caching for Craft CMS 6.

This package stores eligible HTML responses in Laravel's cache and can optionally publish the rendered HTML to disk. When disk publishing is enabled, your web server can serve cached pages directly before PHP boots.

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require rias/craft-static-cache
```

Install the Craft plugin:

```
php craft plugin/install static-cache
```

Configuration
-------------

[](#configuration)

You can publish the config file with:

```
php craft vendor:publish --tag=static-cache
```

This will publish the config file to `config/craft/static-cache.php`.

The published config file looks like this:

```
