Esempio n. 1
0
def varnish_install():
    """
    Build and install varnish HTTP accelerator
    """
    varnish = bungeni.VarnishTasks()
    varnish.setup_varnish()
    varnish.create_vlc_file()
Esempio n. 2
0
def varnish_purge():
    """
    Warmup the varnish cache
    """
    varnish = bungeni.VarnishTasks()
    varnish.varnish_purge_cache()
Esempio n. 3
0
def config_varnish():
    """
    Generates the varnish configuration file (VCL)
    """
    varnish = bungeni.VarnishTasks()
    varnish.varnish_config()