This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

stxnext.varnishpurger

Overview

A viewlet containing the link to perform action of purging varnish cache for actual object’s views.

Installation

If you are using zc.buildout to manage your project, you can do this:

  • Add stxnext.varnishpurger to the list of eggs to install, e.g.:

    [buildout]
    ...
    eggs =
        ...
        stxnext.varnishpurger
    
  • If you’re using plone.recipe.zope2instance recipe to manage your instance add this lines to install a ZCML slug:

    [instance]
    recipe = plone.recipe.zope2instance
    ...
    zcml =
        ...
        stxnext.varnishpurger
    
  • Re-run buildout, e.g. with:

    $ ./bin/buildout
    

You can skip the ZCML slug if you are going to explicitly include the package from another package’s configure.zcml file.

Finally go to portal_quickinstaller and install stxnext.varnishpurger product.

Usage

After installation one new viewlet above object’s content will be displayed. The viewlet contains a link to purge content of actual url from varnish cache. In site properties there is additional configuration where you can define the address of varnish instance url (by default: localhost:6081).

The varnish configuration file should contain customized vcl_recv subroutine to purge given object by it’s UID:

sub vcl_recv {

        ...

   if (req.request == "PURGE") {
        if (!client.ip ~ purge) {
             error 405 "Not allowed.";
            }
        purge("obj.http.X-Context-Uid ~ " req.url);
            error 200 "Purged";
        return(lookup);
   }

    ...

}

Tested With

Plone 3, Plone 4 and Varnish 2.1.x

References

varnish: http://www.varnish-cache.org

Plone: http://plone.org

Author & Contact

Author:
  • Radosław Jankiewicz <radoslaw.jankiewicz@stxnext.pl>
  • Wojciech Lichota <wojciech.lichota@stxnext.pl>
  • Marcin Ossowski <marcin.ossowski@stxnext.pl>

STX Next Sp. z o.o.

http://stxnext.pl

info@stxnext.pl

Changelog

0.3.0 (2011-12-08)

  • Link for executing purging action moved from a viewlet to the ‘Actions’ dropdown [radekj]

0.2.0 (2011-11-03)

  • Fixes to work with Plone 4.1 [radekj]

0.1.2 (2011-05-13)

  • Moved to collective svn, updated docs [radekj]

0.1.1 (2010-05-24)

  • Fixed setting UID in http header for FSPageTemplate views [radekj]

0.1.0 (2010-05-13)

  • Initial release [radekj]
Release History

Release History

0.3.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
stxnext.varnishpurger-0.3.0.tar.gz (9.2 kB) Copy SHA256 Checksum SHA256 Source Dec 8, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting