Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted October 28, 200915 yr Hi, what is doing xCache and what is doing memcache if both are enabled in global_conf.php? for sure xcache is caching php code what is doing memcache in that time? Are You using both? What is the impact on the server? Regards YacentY
October 29, 200915 yr Memcache is only beneficial on a multi server setup. On a single server you should just use xcache for php and datastore caching.
October 30, 200915 yr Author do You have any test results that Your recomendation is valid? Few weeks ago I get a recomendation that both are usefull
November 1, 200915 yr [quote name='yacenty' date='30 October 2009 - 04:16 PM' timestamp='1256915777' post='1873481'] do You have any test results that Your recomendation is valid? Few weeks ago I get a recomendation that both are usefull On my local machine with no caching page generates in .15s with gzip .14s with xcache .12s with few less queries with xcache, gzip and memcached .07 Memcache saves you queries your db is not so busy, and xcache saves your web server from loading too much because it pulls pages from ram, and it doesn't generates it everytime.
November 1, 200915 yr You can not have both enabled on conf_global.php. IP.Board will only use one them to store the cache. And it's prioritized like this: EAccelerator > Memcached > XCache > APC > Diskcache > DB. Not sure if XCache also cooperate directly with the PHP process when added, so you may gain something there, but IP.Board will not store its cache there.
November 2, 200915 yr Do you need screen shots that both of cache is used? I don't know about IPS but there are few applications that are used in that combo with big improvements. Like i said memcached offloads database quite a lot and I have extremely busy database.
November 9, 200915 yr [quote name='Dhillon' date='29 October 2009 - 12:00 PM' timestamp='1256846456' post='1873173'] Memcache is only beneficial on a multi server setup. On a single server you should just use xcache for php and datastore caching.This is correct. [quote name='m4rtin' date='01 November 2009 - 03:19 PM' timestamp='1257117579' post='1874439'] You can not have both enabled on conf_global.php. IP.Board will only use one them to store the cache. And it's prioritized like this: EAccelerator > Memcached > XCache > APC > Diskcache > DB.Not sure if XCache also cooperate directly with the PHP process when added, so you may gain something there, but IP.Board will not store its cache there. Using XCache DOES tie with the direct PHP process thus is not useful on a multi-server setup (Such as remote php-fastcgi server setups) and then memcache would be more beneficial On a standard single server (Doesn't matter the ram or cpu counts) XCache would be "Faster" and would save network connections (Even local is connections) and XCache also saves DB queries.
Archived
This topic is now archived and is closed to further replies.