Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

marcaube/Nuke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuke

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages