PHPackages                             mmoreram/cache-flush-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. mmoreram/cache-flush-bundle

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

mmoreram/cache-flush-bundle
===========================

Symfony cache flusher

v1.0.1(9y ago)118.5k2MITPHPPHP &gt;=7.1

Since Mar 12Pushed 9y ago2 watchersCompare

[ Source](https://github.com/mmoreram/CacheFlushBundle)[ Packagist](https://packagist.org/packages/mmoreram/cache-flush-bundle)[ Docs](https://github.com/mmoreram/CacheFlushBundle)[ RSS](/packages/mmoreram-cache-flush-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (8)Versions (8)Used By (2)

Cache Flush Bundle
==================

[](#cache-flush-bundle)

[![Build Status](https://camo.githubusercontent.com/37ad2be06e0180c31aa147d8b0ad3344fcc9cb1e092ae8f16515bb6a4a8575fa/68747470733a2f2f7472617669732d63692e6f72672f6d6d6f726572616d2f4361636865466c75736842756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/mmoreram/CacheFlushBundle)

---

Flush all your kernel content with a simple Symfony service.

```
$this
    ->container
    ->get('cache_flusher')
    ->flushCache()
```

by default the service will flush the cache of the kernel loaded in the framework, but you can explicitly flush one kernel's cache by passing the kernel as the first and unique method's parameter.

```
$myOtherKernel = //
$this
    ->container
    ->get('cache_flusher')
    ->flushCache($myOtherKernel)
```

You can inject the service as well.

```
my_service:
    class: MyService\Namespace
    arguments:
        '@cache_flusher'
```

The service dispatches as well two events, one just before flush the kernel's cache, and another one just after. In both cases, an instance of `CacheFlushEvent` is dispatched, with the used kernel inside.

```
my_event_listener:
    class: MyEventListener\Namespace
    tags:
        - { name: kernel.event_listener, event: cache.pre_flush }
        - { name: kernel.event_listener, event: cache.on_flush }

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~109 days

Recently: every ~140 days

Total

7

Last Release

3429d ago

Major Versions

v0.2.1 → v1.0.02016-12-15

PHP version history (3 changes)v0.1.0PHP &gt;=5.4

v0.2.0PHP ^5.4|^7.0

v1.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8cb88fa6413489c9cdb77288a06ff94b4553aa497d8fc0ee1891576053f1306?d=identicon)[mmoreram](/maintainers/mmoreram)

---

Top Contributors

[![mmoreram](https://avatars.githubusercontent.com/u/521409?v=4)](https://github.com/mmoreram "mmoreram (13 commits)")

---

Tags

Symfony2cacheflush

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mmoreram-cache-flush-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mmoreram-cache-flush-bundle/health.svg)](https://phpackages.com/packages/mmoreram-cache-flush-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

7014.0M62](/packages/scheb-2fa-bundle)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
