ob/cachenuke-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony2 bundle that provides a nice button to annihilate your cache from the comfort of your browser

Installs: 62

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2015-01-21 23:48 UTC

This package is not auto-updated.

Last update: 2020-01-12 16:27:23 UTC


README

Nuke provides a nice button to annihilate your cache from the comfort of your browser, it's violent like that.

Usage

Import the template fragment where you need it ...

{% include "ObCacheNukeBundle::button.html.twig" %}

... click on the darn thing and take a sip of coffee while war is waging on your cache files!

Installation

Run composer require ob/cachenuke-bundle

Register the bundles in app/AppKernel.php

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
        new Ob\CacheNukeBundle\ObCacheNukeBundle(),
    );
}

Register the routing in app/config/routing.yml

ob_cache_nuke:
    resource: "@ObCacheNukeBundle/Resources/config/routing.yml"
    prefix:   /

fos_js_routing:
    resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"

You should probably – like seriously, do it – add a route prefix that's behind the firewall, that way no weirdo with too much time will write a script to continuously clear your cache.

Publish assets:

$ php app/console assets:install --symlink web

Credit

License

This bundle is released under the MIT License. See the bundled LICENSE file for details.