Using Alternate Cache Storage
Submitted
Mark
, Oct 16 2009 08:28 AM | Last updated Aug 05 2010 08:11 AM
IP.Board by default stores cached data in the database, however support is also included for APC, eAccelerator, Memcache, XCache or storing cached data in files.
Larger sites may benefit from using one of these external cache sources.
To enable any of these, you must first ensure that the appropriate extension is available with your hosting provider. If you enable any of these and they are not available, IP.Board will fallback to the default cache store.
If using the disk cache system, no additional extensions are required. Files will be written to the cache directory, which should already be writable.
Once you have installed any necessary extensions, you simply need to add a line to your conf_global.php file to enable them.
For APC:
For eAccelerator:
For Memcache:
You can also add memcache_server_2 / memcache_port_2 and memcache_server_3 / memcache_port_3 etc. (up to 5) if necessary.
For XCache:
For disk storage:
Once this is done IP.Board will start using the alternative cache method.
Larger sites may benefit from using one of these external cache sources.
To enable any of these, you must first ensure that the appropriate extension is available with your hosting provider. If you enable any of these and they are not available, IP.Board will fallback to the default cache store.
If using the disk cache system, no additional extensions are required. Files will be written to the cache directory, which should already be writable.
Once you have installed any necessary extensions, you simply need to add a line to your conf_global.php file to enable them.
For APC:
$INFO['use_apc'] = '1';
For eAccelerator:
$INFO['use_eaccelerator'] = '1';
For Memcache:
$INFO['use_memcache'] = '1'; $INFO['memcache_server_1'] = ''; $INFO['memcache_port_1'] = '';You will need to fill in the Memcache server address and port in addition to the use_memcache line.
You can also add memcache_server_2 / memcache_port_2 and memcache_server_3 / memcache_port_3 etc. (up to 5) if necessary.
For XCache:
$INFO['use_xcache'] = '1';
For disk storage:
$INFO['use_diskcache'] = '1';
Once this is done IP.Board will start using the alternative cache method.
Enabling any of these methods will override the default cache store. You should never add more than one of the above lines of code to your conf_global file.
- BomAle likes this











0 Comments