Symfony cache flusher

Installs: 18 503

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0


v1.0.1 2016-12-28 09:59 UTC

This package is auto-updated.

Last update: 2024-06-29 03:47:02 UTC


Cache Flush Bundle

Build Status

Flush all your kernel content with a simple Symfony service.


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 = //

You can inject the service as well.

    class: MyService\Namespace

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.

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