Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 30, 201213 yr don't have link now but over last few days I had seen some mentions of running memcache alongside apc. why? does memcache work on files apc doesn't? I don't see, in a very quick search, any reason running both would help.
January 30, 201213 yr I have been one of them, and one of the people running this setup. So, I guess I'll answer. (Just to note, the word apc in this post can be freely exchanged with xcache as well) If you are running on a single machine, just APC is fine and memcache + apc gives no additional performance benefit (assuming that you're using apc as user cache as well). APC is however an opcache + user cache. That is, it speeds up php performance and gives memory room to store what ever data. Memcache is only a user cache. It does not speed up php performance. So, on your php server, you'd install apc. On your 2nd server, memcache runs. This splits the load and allows you to create a tiered caching method (should you choose to). For example, facebook does this (tiered cache) but with a hoard of cache farms... Memcache also carries certain features that APC does not have and same vice versa. If you want to use one of such feature, you'll do exactly that even with a single server. I personally use some features only found in memcache -- none which is of IPB's natural usage.
January 30, 201213 yr Author ah, that makes sense. I am single machine and have tried memcache before with no noticeable gains. I may play around in a bit to see but I always wondered about setups like you explained too. thank you
February 1, 201213 yr Author had not had chance to look at this but apc started causing apache to stop. seems apc has documented bug (I don't have ink now) with php 5.3.9. tired of messing w/ it so will look into others.
February 4, 201213 yr Author from what I see all (except mem) need fastcgi but can't get any uploads over 1m +/- to work when thats used.
February 5, 201213 yr from what I see all (except mem) need fastcgi but can't get any uploads over 1m +/- to work when thats used. 1. Not sure why you "need" fastcgi. Missing background/context 2. Upload limit isn't controlled by apc or xcache. Suggest you review your php.ini file. I'm running apc and I have 200mb file limit set.
February 5, 201213 yr Author had to edit conf filehttp://pivica.me/blo...odfcgid-problem # Work around annoying fcgid limitations <IfModule mod_fcgid.c> # 20MB should be enough MaxRequestLen 20000000 </IfModule> apc won't work with dso/suphp/cgi on a whm/cpanel server, not sure about any other setup. now I have mod_fgci working right apc is helping me.
Archived
This topic is now archived and is closed to further replies.