Cache plugin for CakePHP

Fund package maintenance!

Installs: 18 885

Dependents: 1

Suggesters: 0

Security: 0

Stars: 32

Watchers: 6

Forks: 17

Open Issues: 1


1.2.1 2023-01-29 00:07 UTC

This package is auto-updated.

Last update: 2023-01-29 00:08:45 UTC


CI Coverage Status Latest Stable Version Minimum PHP Version License Coding Standards

This branch is for use with CakePHP 4.4+.

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.



You can install this plugin into your CakePHP application using composer.

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


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.