public
Description: Funky cache plugin for Frog CMS
Homepage: http://www.appelsiini.net/projects/funky_cache
Clone URL: git://github.com/tuupola/frog_funky_cache.git
name age message
file FunkyCacheController.php Thu May 28 07:01:28 -0700 2009 Log basic events to Dashboard. [tuupola]
file README.textile Thu May 28 07:01:28 -0700 2009 Log basic events to Dashboard. [tuupola]
file disable.php Mon Apr 27 07:06:24 -0700 2009 Prevent direct access to enable and disable scr... [tuupola]
file enable.php Mon Apr 27 07:06:24 -0700 2009 Prevent direct access to enable and disable scr... [tuupola]
directory images/ Thu Nov 20 02:50:30 -0800 2008 Skeleton of funky cache plugin. [tuupola]
file index.php Thu May 28 07:01:28 -0700 2009 Log basic events to Dashboard. [tuupola]
directory lib/ Fri Dec 05 07:39:10 -0800 2008 Enable deleting cached pages individually. [tuupola]
directory models/ Wed Feb 04 10:33:07 -0800 2009 Show real (not cached) path in admin. [tuupola]
directory views/ Mon Mar 02 02:10:25 -0800 2009 Fix compability issues with 0.9.5 mod_rewrite r... [tuupola]
README.textile

Speed

Following chart show number of requests per second on a test server. Three bars represent Frog installation with no caching, with File Cache plugin installed and with Funky Cache plugin installed. More accurate numbers in speed comparison blog post.

Install

Copy files to frog/plugins/funky_cache/ folder.

cd frog/plugins/
git clone git://github.com/tuupola/frog_funky_cache.git funky_cache

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

define('USE_MOD_REWRITE', true);

Got to admin and enable Funky Cache plugin.

Reload the admin page to see “Cache” tab appear. Click on the tab to 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 Frog config.php. If your URL_SUFFIX is empty cache file suffix will default to .html.

Cache folder is the folder where static files are written. Folder is related to document root. If you leave this empty cached files will be written to document root. Webserver must have write access to cache folder.

Go to shell and create the cache folder and give write access to it.

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

Funky Cache depends on correctly setup mod_rewrite rules. Rules are different depending on your Frog and plugin settings. Click “Your .htaccess file” on sidebar. Cut and paste given code to .htaccess file in your document root.

Changelog

0.3.6

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