Git Product home page Git Product logo

varnishbakery's Introduction

VarnishBakery plugin for CakePHP

Build Status Minimum PHP Version

This plugin allow you to manage varnish tasks from cake shell.

Features

  • Manage your vcl
  • You can use varnishadm command from cake shell.

Installation

In your application you need to load the plugin.

config/bootstrap.php

Plugin::load('VarnishBakery', ['bootstrap' => true, 'routes' => true]);

You need to set your own configuration in the plugins/VarnishBakery/config/bootstrap.php file.

"vcl" configuration are used to generate vcl.

"varnish" configuration are used to communicate with varnish service.

Usage

You can use it reach varnishadm command

cd bin/
./cake vcl_cook
--------------------------------------
Welcome to varnish bakery cooking Shell

help [command]
ping [timestamp]
auth response
quit
banner
status
start
stop
vcl.load <configname> <filename>
vcl.inline <configname> <quoted_VCLstring>
vcl.use <configname>
vcl.discard <configname>
vcl.list
param.show [-l] [<param>]
param.set <param> <value>
panic.show
panic.clear
storage.list
vcl.show <configname>
backend.list
backend.set_health matcher state
ban <field> <operator> <arg> [&& <field> <oper> <arg>]...
ban.list

or you can use varnish_bakery shell subcommand

./cake vcl_cook apply_vcl

To know all subcommand available

./cake vcl_cook -h

Requirements

  • Varnish version > 4.0

(c) 2017 https://github.com/chepchepcirkus
License: BSD-3-Clause

varnishbakery's People

Contributors

chepchepcirkus avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.