dereuromark / cakephp-cache
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!
Requires
- php: >=8.2
- cakephp/cakephp: ^5.1.1
Requires (Dev)
- dereuromark/cakephp-shim: ^3.0.0
- fig-r/psr2r-sniffer: dev-master
- phpunit/phpunit: ^11.5 || ^12.1 || ^13.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
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.