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


This cubes enables a purge mechanism for a cubicweb website that is sitting behind a varnish cache.


The purge mechanism consists of sending purge commands to the administration backend of varnish (by default localhost:6082). Generally it is recommended to protect this management port with a secret file which can be configured in this cube. Multiple backends can be controlled in this manner in a distributed setup.

Out of the box, this cube will not purge any URLs. The logic of which pages should be “purged” has to be implemented in content cubes.

To configure which urls to purge, you have to implement an IVarnishAdapter, for example

.. sourcecode:: python

from cubes.varnish.entities import IVarnishAdapter

class BlogEntryVarnishAdapter(IVarnishAdapter):

__select__ = is_instance(‘BlogEntry’)

def urls_to_purge(self):
return (‘/’, #frontpage
self.entity.absolute_url(), #URL of blog post ‘/BlogEntry’ # list of blog entries)

Debugging : cubicweb-varnish will not crash when it cannot connect to the administrative port, it will silently log an error in the log.


or apt-get install varnish (for debian derived distributions)

Release History

Release History


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

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
cubicweb-varnish-0.3.0.tar.gz (8.1 kB) Copy SHA256 Checksum SHA256 Source Feb 5, 2015

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