Jump to content

Xcache + Memcached

Featured Replies

Posted

Hi,

Is it possible to use both xcache and memcached? Would it increase any performance?


Thank you.

Yes you can use both; Xcache is a PHP Opcode cacher and memcached is a data cacher - they do different things, but both should help increase performance if configured correctly.

Cheers,
Shaun :D

IfAs cycled said yes if configured right, If not then you will see high memory usuage and the /tmp may fill up rather fast.

  • Author

Thx Gary, I guess I'll hire you again :P


Will I be able to edit the config like this?

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


Thank you.


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.
  • Author

Thanks Elvis. BTW can you please tell how much RAM your system has?


Thank you.

I'm showing 1457MB right now.

Archived

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

Recently Browsing 0

  • No registered users viewing this page.