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.1.0(6mo ago)3338.4k↓29.2%18[2 issues](https://github.com/dereuromark/cakephp-cache/issues)1MITPHPPHP &gt;=8.1CI passing

Since Feb 8Pushed 2mo ago6 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (21)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/dbabe22710e675cb88cd0b12196f1477e2376dea497332775692cf1359a75918/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d5053522d2d322d2d522d79656c6c6f772e737667)](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

60

—

FairBetter than 99% of packages

Maintenance78

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 85.1% 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 ~210 days

Recently: every ~270 days

Total

18

Last Release

180d 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 (6 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

### 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 (189 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)")

###  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

[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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