PHPackages                             dereuromark/cakephp-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. dereuromark/cakephp-cache

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

dereuromark/cakephp-cache
=========================

A CakePHP plugin for view caching with configurable strategies

2.2.1(2mo ago)3341.5k↑46.2%18[2 issues](https://github.com/dereuromark/cakephp-cache/issues)1MITPHPPHP &gt;=8.2CI passing

Since Feb 8Pushed 1mo ago6 watchersCompare

[ Source](https://github.com/dereuromark/cakephp-cache)[ Packagist](https://packagist.org/packages/dereuromark/cakephp-cache)[ Docs](https://github.com/dereuromark/cakephp-cache)[ GitHub Sponsors](https://github.com/dereuromark)[ RSS](/packages/dereuromark-cakephp-cache/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (24)Used By (1)

Cache plugin for CakePHP
========================

[](#cache-plugin-for-cakephp)

[![CI](https://github.com/dereuromark/cakephp-cache/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/dereuromark/cakephp-cache/actions/workflows/ci.yml?query=branch%3Amaster)[![Coverage Status](https://camo.githubusercontent.com/a21e721b4ffa7b363d20a4a7a0264eaa24d70da32e88fc05945caeffc94d6cbf/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6465726575726f6d61726b2f63616b657068702d63616368652f6d61737465722e737667)](https://codecov.io/github/dereuromark/cakephp-cache/branch/master)[![PHPStan](https://camo.githubusercontent.com/f60d96f7c2579690ab6dfa8918f777fe93a02a92301c661eb38a85861a92b780/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230382d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)[![Latest Stable Version](https://camo.githubusercontent.com/cf1896a157a1fa9d739b551d7232ea995727e9dd5817f8b4a24bfa9cef938244/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d63616368652f762f737461626c652e737667)](https://packagist.org/packages/dereuromark/cakephp-cache)[![Minimum PHP Version](https://camo.githubusercontent.com/ec21f169d70b69344c67d6f18fa1a24d20476d2f0cd680e8c4a1534c22f34e5f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e322d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/12044cfeb0fba7518450f38f73d0bfdbd92f0bf7b93cb788c788c38bb0cdea26/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d63616368652f6c6963656e73652e737667)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/ef33462f5da4481ec6386d69b83760277361902356f808df8e0cc59a37c8e29c/68747470733a2f2f706f7365722e707567782e6f72672f6465726575726f6d61726b2f63616b657068702d63616368652f642f746f74616c2e737667)](https://packagist.org/packages/dereuromark/cakephp-cache)[![Coding Standards](https://camo.githubusercontent.com/4788bab10b61ca8b0d56334238717a9191fe9cceecb154973f8854146a2bb5a6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d5053522d2d322d2d522d707572706c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-fig-rectified/fig-rectified-standards)

This branch is for use with **CakePHP 5.1+**. For details see [version map](https://github.com/dereuromark/cakephp-cache/wiki#cakephp-version-map).

What is it for?
---------------

[](#what-is-it-for)

It is the successor of the 2.x CacheHelper and allows you to cache your complete views as HTML. No dynamic parts anymore, just complete static content ready to be delivered. If you don't want to set up ESI and other third party caching software, this CakePHP only approach does the job.

It uses a Middleware and a Component. Why not a helper anymore? Mainly because a helper is too limited and would not be able to cache serialized views, e.g. JSON, CSV, RSS content which have been build view-less.

Demo
----

[](#demo)

[sandbox.dereuromark.de/sandbox/cache-examples/](https://sandbox.dereuromark.de/sandbox/cache-examples/)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require dereuromark/cakephp-cache

```

Also don't forget to load the plugin in your `Application` class or by running:

```
bin/cake plugin load Cache

```

Usage
-----

[](#usage)

This plugin contains a full-page view cache solution for your controller actions. You can use file-based (default) or any engine based (e.g. Memcache, Redis, ...) cache strategy.

For details see [/docs](/docs).

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance89

Actively maintained with recent releases

Popularity42

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 85.5% 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 ~196 days

Recently: every ~297 days

Total

20

Last Release

63d ago

Major Versions

0.4.0 → 1.0.0-beta2020-01-15

0.4.1 → 1.1.02021-06-23

0.5.1 → 1.2.02023-01-28

1.2.1 → 2.0.02023-10-30

PHP version history (7 changes)0.1PHP &gt;=5.4.16

0.2PHP &gt;=5.5

0.3.1PHP &gt;=5.6

1.0.0-betaPHP &gt;=7.2

1.2.0PHP &gt;=7.4

2.0.0PHP &gt;=8.1

2.2.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39854?v=4)[Mark Scherer](/maintainers/dereuromark)[@dereuromark](https://github.com/dereuromark)

---

Top Contributors

[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (195 commits)")[![jaykay-design](https://avatars.githubusercontent.com/u/309927?v=4)](https://github.com/jaykay-design "jaykay-design (20 commits)")[![jorisvaesen](https://avatars.githubusercontent.com/u/4093781?v=4)](https://github.com/jorisvaesen "jorisvaesen (5 commits)")[![volponi](https://avatars.githubusercontent.com/u/1857845?v=4)](https://github.com/volponi "volponi (4 commits)")[![NewtonMan](https://avatars.githubusercontent.com/u/4259752?v=4)](https://github.com/NewtonMan "NewtonMan (2 commits)")[![miguelfrmn](https://avatars.githubusercontent.com/u/428182?v=4)](https://github.com/miguelfrmn "miguelfrmn (1 commits)")[![Oxicode](https://avatars.githubusercontent.com/u/1320709?v=4)](https://github.com/Oxicode "Oxicode (1 commits)")

---

Tags

pluginperformancecakephpcachecachingview cache

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dereuromark-cakephp-cache/health.svg)

```
[![Health](https://phpackages.com/badges/dereuromark-cakephp-cache/health.svg)](https://phpackages.com/packages/dereuromark-cakephp-cache)
```

###  Alternatives

[putyourlightson/craft-blitz

Intelligent static page caching for creating lightning-fast sites.

155484.7k37](/packages/putyourlightson-craft-blitz)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131240.2k13](/packages/dereuromark-cakephp-tinyauth)[silverstripe/staticpublishqueue

Static publishing queue to create static versions of pages for enhanced performance and security

44140.1k6](/packages/silverstripe-staticpublishqueue)[dereuromark/cakephp-setup

A CakePHP plugin containing lots of useful management tools

36199.6k2](/packages/dereuromark-cakephp-setup)[maartenstaa/laravel-41-route-caching

This package allows you to cache your routes definitions, thereby speeding up each request.

25381.4k](/packages/maartenstaa-laravel-41-route-caching)[alekseykorzun/memcached-wrapper-php

Optimized PHP 5 wrapper for Memcached extension that supports dog-piling, igbinary and local storage

2988.9k1](/packages/alekseykorzun-memcached-wrapper-php)

PHPackages © 2026

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