Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 8, 201113 yr Hi, Is it possible to use both xcache and memcached? Would it increase any performance? Thank you.
September 8, 201113 yr 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
September 8, 201113 yr IfAs cycled said yes if configured right, If not then you will see high memory usuage and the /tmp may fill up rather fast.
September 8, 201113 yr 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.
September 10, 201113 yr 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
September 16, 201113 yr 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.
September 16, 201113 yr Author Thanks Elvis. BTW can you please tell how much RAM your system has? Thank you.
Archived
This topic is now archived and is closed to further replies.