dev-master
9999999-dev https://github.com/marcaube/NukeSymfony2 bundle that provides a nice button to annihilate your cache from the comfort of your browser
MIT
The Requires
by Marc Aubé
cache symfony2 clear ob marcaube nuke
Wallogit.com
2017 © Pedro Peláez
Symfony2 bundle that provides a nice button to annihilate your cache from the comfort of your browser
Nuke provides a nice button to annihilate your cache from the comfort of your browser, it's violent like that., (*1)
Import the template fragment where you need it ..., (*2)
{% include "ObCacheNukeBundle::button.html.twig" %}
... click on the darn thing and take a sip of coffee while war is waging on your cache files!, (*3)
composer require ob/cachenuke-bundle
app/AppKernel.php
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
new Ob\CacheNukeBundle\ObCacheNukeBundle(),
);
}
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., (*4)
$ php app/console assets:install --symlink web
This bundle is released under the MIT License. See the bundled LICENSE file for details., (*5)
Symfony2 bundle that provides a nice button to annihilate your cache from the comfort of your browser
MIT
cache symfony2 clear ob marcaube nuke