Zhana Posted September 8, 2011 Share Posted September 8, 2011 Hi, Is it possible to use both xcache and memcached? Would it increase any performance? Thank you. Link to comment Share on other sites More sharing options...
Clickfinity Posted September 8, 2011 Share Posted September 8, 2011 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 Link to comment Share on other sites More sharing options...
Gary. Posted September 8, 2011 Share Posted September 8, 2011 IfAs cycled said yes if configured right, If not then you will see high memory usuage and the /tmp may fill up rather fast. Link to comment Share on other sites More sharing options...
Zhana Posted September 8, 2011 Author Share Posted September 8, 2011 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. Link to comment Share on other sites More sharing options...
ThatForumGuy Posted September 10, 2011 Share Posted September 10, 2011 Will I be able to edit the config like this? $INFO['use_xcache'] = '1'; $INFO['use_memcached'] = '1'; Thank you. Here you go:http://community.invisionpower.com/resources/documentation/index.html/_/new-docs/ipboard/server-environment-and-security/improving-board-efficiency-r565 Link to comment Share on other sites More sharing options...
Velvet Elvis Posted September 16, 2011 Share Posted September 16, 2011 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 More sharing options...
Zhana Posted September 16, 2011 Author Share Posted September 16, 2011 Thanks Elvis. BTW can you please tell how much RAM your system has? Thank you. Link to comment Share on other sites More sharing options...
Velvet Elvis Posted September 18, 2011 Share Posted September 18, 2011 I'm showing 1457MB right now. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.