Firebird News

Monday, June 09, 2008

adding APC cache configuration to cakephp1.2

First install apc module in php by following this tutorial

vi app/config/core.php

and delete the last line

Cache::config('default', array('engine' => 'File'));

and replace it with

Cache::config('default', array(
'engine' => 'Apc' ,//[required]
'duration'=> 3600, //[optional]
'probability'=> 100, //[optional]
'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
Post a Comment