Downloading and Installing CacheFu itself

by Justin Ryan last modified Dec 30, 2008 05:52 PM
The first step in CacheFu-ing your site is to get the products into Zope.

There are many caching configurations for CacheFu, some requiring extraneous software such as Squid and Apache which are external to Zope and Plone, but always relying on the Zope and Plone addons which manage caching policies for content, skins, etc..  To begin on your journey, download the latest release of CacheFu from here, extract it, and copy, move, or symlink these folders into your $INSTANCE_HOME/Products/ folder:

  • CacheSetup/
  • CMFSquidTool/
  • PolicyHTTPCacheManager/
  • PageCacheManager/
Make sure not to copy MemcachedManager in, as it is still experimental and not considered a part of the main CacheFu setup.

Now that you have code available to Zope and Plone which can be used to set and manage your policies and other cache settings, restart Zope.  In a default source install of Zope, you would run this as root, zope, or whatever user you have Zope running as:

    $INSTANCE_HOME/bin/zopectl restart

You should be able to follow a link titled "site setup" either in the upper right corner, or the personal bar near your user name, to the QuickInstaller, which you'll see as "Add / Remove Products".  Tick the box next to CacheSetup, no others, and hit the "install" button.

Now you're ready to move on and make some decisions about your overall caching strategy.  You should already see some performance improvement in your site from the default page cache configuration, which caches page output in Zope memory, and the aggressive browser caching settings.