PHPackages                             timnarr/kirby-snippet-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. timnarr/kirby-snippet-cache

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

timnarr/kirby-snippet-cache
===========================

This plugin provides caching functionality for Kirby CMS snippets.

0.2.0(1mo ago)8102MITPHPPHP &gt;=8.1.0

Since Nov 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/timnarr/kirby-snippet-cache)[ Packagist](https://packagist.org/packages/timnarr/kirby-snippet-cache)[ Docs](https://github.com/timnarr/kirby-snippet-cache)[ RSS](/packages/timnarr-kirby-snippet-cache/feed)WikiDiscussions main Synced 1mo ago

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

Kirby Snippet Cache
===================

[](#kirby-snippet-cache)

This plugin provides caching functionality for Kirby CMS snippet output via a `snippet-cache` snippet.

It may be useful if you can't use Kirby's overall page cache, but have snippets that do extensive queries or loop and transform a lot of data.

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

[](#installation)

### Download

[](#download)

Download and copy this repository to `/site/plugins/kirby-snippet-cache`.

### Composer

[](#composer)

```
composer require timnarr/kirby-snippet-cache

```

Usage
-----

[](#usage)

```
// Load the `header` snippet with default cache duration
