Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does CakePHP have support for APC, XCache and others?

Does CakePHP have support for APC, XCache and others?

like image 685
JPro Avatar asked Dec 17 '22 01:12

JPro


1 Answers

In cake's /app/config/core.php ,there are some options for you to set the cache engines(version newer than 1.2).e.g

  APC (http://pecl.php.net/package/APC)

 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
));
like image 106
Young Avatar answered Dec 27 '22 13:12

Young



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!