PHPackages                             stadline/execution-cache-bundle - 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. stadline/execution-cache-bundle

ActiveSymfony-bundle[Caching](/categories/caching)

stadline/execution-cache-bundle
===============================

This Bundle provides execution cache for Symfony controllers.

v0.3.2(7y ago)33.4k[1 PRs](https://github.com/stadline/execution-cache-bundle/pulls)MITPHP

Since Jan 28Pushed 6y ago13 watchersCompare

[ Source](https://github.com/stadline/execution-cache-bundle)[ Packagist](https://packagist.org/packages/stadline/execution-cache-bundle)[ RSS](/packages/stadline-execution-cache-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (12)Used By (0)

Installation
============

[](#installation)

This bundle provides a caching mechanism at application level. It's very similar to HTTP caching at reverse-proxy level, but execution cache is done later. This way, the request has already been checked by the security layer but we can running the controller twice if the result should be the same.

The cache storage will provide different result based on Request headers and body. If the exact same request is sent twice and the response is cached, the controller is not run and the response is sent.

Step 1: Install the AdapterBundle
---------------------------------

[](#step-1-install-the-adapterbundle)

This bundle uses a PSR-6 cache implementation provided by . It can be Memcached, Redis, Filesystem, Void or even your own implementation. The choice is yours!

Please check their docs before installing this bundle.

Step 2: Install the Bundle
--------------------------

[](#step-2-install-the-bundle)

Open a command console, go to your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require stadline/execution-cache-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 3: Enable the Bundle
-------------------------

[](#step-3-enable-the-bundle)

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project:

```
