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 collective.catalogcache

How to install collective.catalogcache

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

Introduction

collective.catalogcache uses memcached to cache ZCatalog search results.

Caching is transparent. Invalidation code is called at appropriate places to ensure that the state of the cached results remains consistent.

The use of memcached enables the safe use of caching in a distributed environment.

* WARNING * collective.catalogcache is a big plaster to put over your site while you determine why things are slow. Use in production is recommended for the brave / foolhardy.

Requirements

Zope 2.9.6 - Zope 2.10.6. Other versions are possibly supported but not tested. memcached. Any recent version should work. Download from http://www.danga.com/memcached. python-memcached. Download from http://pypi.python.org/pypi/python-memcached.

If memcached or python-memcached is not available the catalog will function as usual.

Installation

A buildout is provided at http://dev.plone.org/collective/browser/collective.catalogcache/trunk/buildout.cfg. The buildout is for Plone 3, but the product can be used with plain Zope.

To enable collective.kssinline for an existing installation ensure that the following is present in your buildout.cfg

In the eggs section collective.catalogcache

In the zcml section collective.catalogcache

You must edit your zope.conf to declare eg. <environment> MEMCACHE_SERVERS 127.0.0.1:11211,127.0.0.1:11212 </environment>

You must ensure that different logical Zope instances do not use the same memcache servers. Naturally Zeo clients must use the same set of servers.

Run ./bin/buildout -Nv and restart your instance.

Notes on memcached

memcached is designed to run in a distributed environment, hence it is a good idea to run at least two instances on a single machine. More is possibly better depending on your hardware.

To start up two memcached instances for use with the example MEMCACHE_SERVERS declaration do

memcached -u root -d -m 256 -l 0.0.0.0 -p 11211 memcached -u root -d -m 256 -l 0.0.0.0 -p 11212

Changelog

0.2
  • Better documentation
  • Handle infrequent KeyErrors gracefully
0.1
  • Initial release

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.