PHPackages                             bnomei/kirby-turbo - 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. [CLI &amp; Console](/categories/cli)
4. /
5. bnomei/kirby-turbo

ActiveKirby-plugin[CLI &amp; Console](/categories/cli)

bnomei/kirby-turbo
==================

Speed up Kirby with caching

5.2.4(2mo ago)1452↓62.5%1proprietaryPHPPHP &gt;=8.2CI passing

Since May 4Pushed 2mo ago2 watchersCompare

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

READMEChangelog (9)Dependencies (12)Versions (9)Used By (0)

Kirby Turbo
===========

[](#kirby-turbo)

[![Kirby 5](https://camo.githubusercontent.com/b1a1b2ccd58e96259a9722c2489d91f40378c01b6c4c3e9fd27ed1d12c269d7c/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f4b697262792f353f636f6c6f723d454343373438)](https://getkirby.com)[![PHP 8.2](https://camo.githubusercontent.com/fd050028b4459f3f6e4db5703412957375ceb180d27951213d421eb2a23c8c8e/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f5048502f382e323f636f6c6f723d3445354239332669636f6e3d706870266c6162656c)](https://camo.githubusercontent.com/fd050028b4459f3f6e4db5703412957375ceb180d27951213d421eb2a23c8c8e/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f5048502f382e323f636f6c6f723d3445354239332669636f6e3d706870266c6162656c)[![Release](https://camo.githubusercontent.com/59db993c8ebfedecd8b8d59379be44dba7b447a13ef60729d0566aef2f4cf7f8/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f626e6f6d65692f6b697262792d747572626f3f636f6c6f723d6165383166662669636f6e3d676974687562266c6162656c)](https://camo.githubusercontent.com/59db993c8ebfedecd8b8d59379be44dba7b447a13ef60729d0566aef2f4cf7f8/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f626e6f6d65692f6b697262792d747572626f3f636f6c6f723d6165383166662669636f6e3d676974687562266c6162656c)[![Downloads](https://camo.githubusercontent.com/0e9e757c671e8f0e095f971fd5de74305fde4f661b2e92ba98d6356a92a244dd/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f64742f626e6f6d65692f6b697262792d747572626f3f636f6c6f723d3237323832322669636f6e3d676974687562266c6162656c)](https://camo.githubusercontent.com/0e9e757c671e8f0e095f971fd5de74305fde4f661b2e92ba98d6356a92a244dd/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f64742f626e6f6d65692f6b697262792d747572626f3f636f6c6f723d3237323832322669636f6e3d676974687562266c6162656c)[![Unittests](https://github.com/bnomei/kirby-turbo/actions/workflows/pest-tests.yml/badge.svg)](https://github.com/bnomei/kirby-turbo/actions/workflows/pest-tests.yml/badge.svg)[![PHPStan](https://github.com/bnomei/kirby-turbo/actions/workflows/phpstan.yml/badge.svg)](https://github.com/bnomei/kirby-turbo/actions/workflows/phpstan.yml/badge.svg)[![Discord](https://camo.githubusercontent.com/36eaef1b06f4996feb7587aa3281dcbd658e57535bc6b5e10110ed108e7a7a03/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f646973636f72642f626e6f6d65693f636f6c6f723d3732383964612669636f6e3d646973636f7264266c6162656c)](https://discordapp.com/users/bnomei)[![Buy License](https://camo.githubusercontent.com/e0a2560b5d18fcd7b76fece1dc710ec0adb10aff5dfa12baee405d6e7de13383/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f69636f6e2f4275792532304c6963656e73653f69636f6e3d6c656d6f6e73717565657a7926636f6c6f723d464643323333266c6162656c3d24)](https://buy-turbo.bnomei.com)

Speed up Kirby with caching

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

[](#installation)

- unzip [master.zip](https://github.com/bnomei/kirby-turbo/archive/master.zip) as folder `site/plugins/kirby-turbo` or
- `git submodule add https://github.com/bnomei/kirby-turbo.git site/plugins/kirby-turbo` or
- `composer require bnomei/kirby-turbo`

Licensing
---------

[](#licensing)

Kirby Turbo is a commercial plugin that requires a license. You can install and test the plugin locally without a license. However, production environments require a valid license. You can [purchase a license here](https://buy-turbo.bnomei.com).

Overview
--------

[](#overview)

📕Turbo expects **Redis** to be available and when installed it will use the faster msg\_pack or igbinary PHP extensions to serialize data instead of JSON.🔍🗄🆔Turbo adds automatic caching layers to Kirby on scanning the directory inventory, reading the content files from storage and in-between the UUID lookup.🏋️While you could use Turbo in almost any project, you will benefit the most, in those project where you **query 100+ pages/files in a single request**.🛁Turbo provides a global cache helpers `tub()` that has advanced features like key/value serialization, optional set-abortion and more.Quickstart
----------

[](#quickstart)

For each page you want Turbo's caching for `storage` and `inventory` you need to create a PageModel either manually by adding the `Bnomei\ModelWithTurbo` Trait ...

**site/models/example.php**

```
