Indefero

InstallationMemcached


Table of Contents

How to use memcached to improve the performance

By default, Indefero is using a file based cache to store source navigation information. If you have a memcached server running, you can use it and improve the performance of your installation.

The default cache engine is defined line 184 and below in the file src:src/IDF/conf/idf.php-dist

# Caching of the scm commands.
$cfg['cache_engine'] = 'Pluf_Cache_File';
$cfg['cache_timeout'] = 300;
$cfg['cache_file_folder'] = $cfg['tmp_folder'].'/cache';

To use your memcached server, just replace with:

$cfg['cache_engine'] = 'Pluf_Cache_Memcached';
$cfg['cache_timeout'] = 300;
$cfg['cache_memcached_keyprefix'] = 'indefero';  
$cfg['cache_memcached_server'] = 'localhost';
$cfg['cache_memcached_port'] = 11211;

You can learn more about the available cache engine on the Pluf cache framework page.

Created: 11 years 3 months ago
by Natalie Adams

Page rendered in 0.02873s using 24 queries.