2017 © Pedro Peláez
 

symfony-bundle cachenuke-bundle

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

image

ob/cachenuke-bundle

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

  • Thursday, January 22, 2015
  • by marcaube
  • Repository
  • 1 Watchers
  • 1 Stars
  • 57 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Nuke

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

Usage

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)

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., (*4)

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., (*5)

The Versions

22/01 2015

dev-master

9999999-dev https://github.com/marcaube/Nuke

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

  Sources   Download

MIT

The Requires

 

cache symfony2 clear ob marcaube nuke