Search by

dereuromark / cakephp-cache

dereuromark

A CakePHP plugin for view caching with configurable strategies

Package info

github.com/dereuromark/cakephp-cache

Type:cakephp-plugin

pkg:composer/dereuromark/cakephp-cache

Fund package maintenance!

dereuromark

Statistics

Installs: 44 870

Dependents: 1

Suggesters: 0

Stars: 33

Open Issues: 2

2.2.1 2026-05-02 14:10 UTC

README

CI Coverage Status PHPStan Latest Stable Version Minimum PHP Version License Total Downloads Coding Standards

This branch is for use with CakePHP 5. For details see version map.

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

sandbox.dereuromark.de/sandbox/cache-examples/

Documentation

Read the documentation, starting with Installation and Getting started.

The plugin caches complete public response bodies. Read the limitations before selecting actions to cache.