A Wolf CMS caching plugin
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
i18n
images
lib
models
views
FunkyCacheController.php
README.textile
disable.php
enable.php
index.php

README.textile

Short history and status

The funky cache plugin for Wolf CMS was originally created by tuupola.
Maintainership for the plugin was later taken over by mvdkleijn at tuupola’s request since he no longer had time to work on it.
The current version of the plugin was tested to work on Wolf CMS 0.7.5 and upwards.

Speed

Following chart show number of requests per second on a test server.
Three bars representing a Wolf CMS installation with no caching,
with File Cache plugin installed and
with Funky Cache plugin installed. These numbers are just an indication.

Install

Copy the files to wolf/plugins/funky_cache/ folder.

cd wolf/plugins/
git clone git://github.com/mvdkleijn/funky_cache.git funky_cache

Open your config.php and make sure the following is set:

define('USE_MOD_REWRITE', true);

Go to the Wolf CMS admin interface and enable the Funky Cache plugin.

A “Cache” tab should appear after enabling the plugin. Click on the tab and check your settings.

Cache file suffix is important! It is the suffix of static files written to disk. It should be the same as URL_SUFFIX in wolf config.php. If your URL_SUFFIX is empty cache file suffix will default to .html.

Cache folder is the folder where the static files are written. The folder is relative to the document root of your web server. If you leave this empty, cached files will be written to the document root of your web server. The web server MUST have write access to the cache folder.

Go to the shell (or your FTP client) and create the cache folder and give the web server write access to it. For example:

> cd /path/to/document/root/
> mkdir cache
> chmod a+w cache

Funky Cache depends on correctly set up mod_rewrite rules. The rules are different depending on your Wolf CMS and plugin settings. Click on “Example rewrite rules” in the plugin’s sidebar. Cut and paste the given code for your web server to the .htaccess file (or its equivalent) in your document root.

Changelog

0.4.1

  • Fixed small issue with regards to tab being displayed (thanks chrisgo)
  • Added nginx rewrite rules to documentation screen (thanks marvind)

0.4.0

  • Support for root and non-root sites.
  • Fixed some paths
  • Updated for 0.7.5

0.3.6

  • Support for Dashboard plugin.
  • Support for SQLite3 (sartas)
  • Support for urls without trailings slash (/foo/bar) and with trailing slash (/foo/bar/) when not using URL suffix.

0.3.5

  • 0.9.5RC2 tried to use wrong views folder.

0.3.4

  • Fix compatibility issues with 0.9.5 mod_rewrite rules.
  • Show real (not cached) path in admin.
  • Delete cached pages from harddrive when disabling plugin.
  • Fix sidebar view path for 0.9.5