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

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

awallef/cakephp-cache
=====================

CakePHP render caching

3.4.1.4(5y ago)0851PHPPHP &gt;=5.5.9

Since Jun 7Pushed 5y ago2 watchersCompare

[ Source](https://github.com/awallef/cakephp-cache)[ Packagist](https://packagist.org/packages/awallef/cakephp-cache)[ RSS](/packages/awallef-cakephp-cache/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (11)Used By (0)

cakephp-cache plugin for CakePHP
================================

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

This plugin allows you set rules in order to cache Cake's responses using your favourite cache engine/settings from app.php. Then Use Ngnix or Apache modules to serve Pre rendered responses. Tata!

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

[](#installation)

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

The recommended way to install composer packages is:

```
composer require awallef/cakephp-cache:dev-master

```

Load it in your config/boostrap.php

```
Plugin::load('Awallef/Cache');

```

How it works
------------

[](#how-it-works)

A middleware creates cache response as you want using app.php cache engines. Then you have two options to retrieve:

- A component retrieve the cached response before your action is called, but after auth and whatever you need.
- You retrieve the cache response server side with Nginx or any other binary

Cache Settings
--------------

[](#cache-settings)

With a config file you can tell your app when to cache and when to clear cache. In config folder create a cache.php file with as exemple:

```
