Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install five.caching

How to install five.caching

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install five.caching
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0 Available View build log
Windows (64-bit)
1.0 Available View build log
Mac OS X (10.5+)
1.0 Available View build log
Linux (32-bit)
1.0 Available View build log
Linux (64-bit)
1.0 Available View build log
Web
 
License
ZPL
Imports
Lastest release
version 1.0 on Jan 5th, 2011

Introduction

This package is a bridge between z3c.caching and CacheSetup: it takes rulesets configured via z3c.caching and looks for a rule with the same id in your current CacheSetup configuration. That rule is then used to set the caching headers for the response.

This makes it possible to cache content which CacheSetup itself can not handle (such as browser views).

Installation

To use five.caching you need only need to load its zcml.

Usage

The only thing you need to do to enable five.caching to do its work is loads its zcml.

A common problem you might notice is that CacheSetup rules often use python:object.modified() as expression, which does not work with all objects supported by z3c.caching and five.caching. As an alternative this package provides a lastmodified browser view which returns the same information. You can use it by configuring object/@@lastmodified as expression in your CacheSetup rules.

Changelog

1.0 - 2009-05-20
  • Handle anonymous traffic correctly. CacheFu needs to be passed None and not

System Message: WARNING/2 (<string>, line 43)

Bullet list ends without a blank line; unexpected unindent.

a special user object to use the anonymous rules. [hannosch]

  • Corrected the configure.zcml to include the plone.postpublicationhook

System Message: WARNING/2 (<string>, line 47)

Bullet list ends without a blank line; unexpected unindent.

configuration. [hannosch]

1.0b2 - October 21, 2008
  • Handle instance methods as well. This makes it possible to define cache rules

System Message: WARNING/2 (<string>, line 54)

Bullet list ends without a blank line; unexpected unindent.

for CMF skin objects. [wichert]

  • Add @@lastmodified helper view.

System Message: WARNING/2 (<string>, line 58)

Bullet list ends without a blank line; unexpected unindent.

[wichert]

1.0b1 - October 15, 2008
  • Initial release

System Message: WARNING/2 (<string>, line 64)

Bullet list ends without a blank line; unexpected unindent.

[wichert]

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.