Jump to content

Xcache + Memcached


Recommended Posts


Thx Gary, I guess I'll hire you again [img]

[/img]




Will I be able to edit the config like this?



$INFO['use_xcache'] = '1';


$INFO['use_memcached'] = '1';




Thank you.




You can only set one cache in conf_global.php, but you can set IPB to use memcached there and still use a different opcode cache without doing anything at all to configure it onther than setting up the php config file.

Using debian, i have /etc/php5/conf.d/apc.ini containing the following:


extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX

conf_global.php contains the following extra lines:


$INFO['use_memcache'] = 1;
$INFO['memcache_server_1'] = "127.0.0.1";
$INFO['memcache_port_1'] = "11211";

Note that you have to include the last two lines for it to work. If you're not using a distributed database setup (which I might be moving to soon) the above defaults should work.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...