XenForo + caching = AMAZING

Ok cool.

So basically we've gone with a config file that only defines memcached as the backend cache, and it seems APC is working automatically. Good stuff :)
 
Ok cool.

So basically we've gone with a config file that only defines memcached as the backend cache, and it seems APC is working automatically. Good stuff :)
I'd got mine set to use APC for both, but I've just split the back end into memcached.
 
Is memcached required if I'm on a single server?

And,

Anybody know where I can find the apc.php file (for displaying the stats on a browser)?
 
I use memcache on a single server set up.

The apc.php file will be where eve pecl installed apc, so if you are on your own server, just do a locate apc.php
 
Ah, it may have not been in the location database depending on when you installed it and the last time updatedb was ran. At least you've got it now though
 
Is memcached required if I'm on a single server?
And,
Anybody know where I can find the apc.php file (for displaying the stats on a browser)?
memcache is a distributed caching system, aka ideal for more then one server. No, it's not "essential". APC is.
 
Is that a single web server or do you have a fleet of web servers serving your forum? I thought memcache was only useful when you have multiple servers or when your database is hosted on another machine.
 
> I thought memcache was only useful when you have multiple servers or when your database is hosted on another machine.

No, that's not the case at all. Memcache can be used in any of these situations, but it still can provide good benefits even when used on a single server.
 
Just curious, why nobody is using Libmemcached (instead of Memcached) into their XenForo config?
It is a zillion times more performant, compared to deprecated Memcache library.
 
Just curious, why nobody is using Libmemcached (instead of Memcached) into their XenForo config?
It is a zillion times more performant, compared to deprecated Memcache library.
I'm not able to get it to install on either of my cpanel VPS'

Code:
root@vps [~/memcache/libmemcached-1.0.10]# make
make  all-am
make[1]: Entering directory `/root/memcache/libmemcached-1.0.10'
  CXX    libhashkit/libhashkit_libhashkit_la-aes.lo
  CXX    libhashkit/libhashkit_libhashkit_la-algorithm.lo
  CXX    libhashkit/libhashkit_libhashkit_la-behavior.lo
  CXX    libhashkit/libhashkit_libhashkit_la-crc32.lo
  CXX    libhashkit/libhashkit_libhashkit_la-digest.lo
  CXX    libhashkit/libhashkit_libhashkit_la-encrypt.lo
  CXX    libhashkit/libhashkit_libhashkit_la-fnv_32.lo
  CXX    libhashkit/libhashkit_libhashkit_la-fnv_64.lo
  CXX    libhashkit/libhashkit_libhashkit_la-function.lo
  CXX    libhashkit/libhashkit_libhashkit_la-has.lo
  CXX    libhashkit/libhashkit_libhashkit_la-hashkit.lo
  CXX    libhashkit/libhashkit_libhashkit_la-jenkins.lo
  CXX    libhashkit/libhashkit_libhashkit_la-ketama.lo
  CXX    libhashkit/libhashkit_libhashkit_la-md5.lo
  CXX    libhashkit/libhashkit_libhashkit_la-murmur.lo
  CXX    libhashkit/libhashkit_libhashkit_la-one_at_a_time.lo
  CXX    libhashkit/libhashkit_libhashkit_la-str_algorithm.lo
  CXX    libhashkit/libhashkit_libhashkit_la-strerror.lo
  CXX    libhashkit/libhashkit_libhashkit_la-string.lo
  CXX    libhashkit/libhashkit_libhashkit_la-nohsieh.lo
  CXXLD  libhashkit/libhashkit.la
  CXX    libmemcached/csl/libmemcached_libmemcached_la-context.lo
In file included from ./libmemcached/common.h:72,
                 from ./libmemcached/csl/common.h:40,
                 from libmemcached/csl/context.cc:38:
./libmemcached-1.0/memcached.h:46:27: error: tr1/cinttypes: No such file or directory
make[1]: *** [libmemcached/csl/libmemcached_libmemcached_la-context.lo] Error 1
make[1]: Leaving directory `/root/memcache/libmemcached-1.0.10'
make: *** [all] Error 2
 
Managed to get it to install.

Code:
yum install gcc44.x86_64 gcc44-c++.x86_64

Code:
# export CC=/usr/bin/gcc44
# export CXX=/usr/bin/g++44

Now switched over to libmemcached

Before
memcache.webp

now
libmemcached.webp
 
Yes, on CentOS 5 you need gcc44. Congrats. You could also install instead the Axivo rpm's? :)
# yum --enablerepo=axivo install php-pecl-memcached
You are done... not to mention that you get JSON and Igbinary support, as well PHP sessions cached directly into Memcached server. :giggle:

IMG_08082012_123106.webp IMG_08082012_123523.webp
 
Just curious, why nobody is using Libmemcached (instead of Memcached) into their XenForo config?
It is a zillion times more performant, compared to deprecated Memcache library.
Been using it for a long long time, long live libmemcached :)
 
Also I use igbinary as the serialiser, much better than the inbuilt one.
Not to mention that Xenforo uses JSON galore.
Been using igbinary even before it was released as official PECL package. I bet you also use re2c... :)

IMG_08082012_135552.webp
 
Been using it for a long long time, long live libmemcached :)
Same here. How is your waste on the server? Even if I have the slabs set to auto recycle, I get a high waste:

stats.webp

It does not makes sense to me, is the waste managed when the max memory threshold hits? So far there is about 50% of allocated memory marked as free so maybe that why the slabs are sitting there...
 
Top Bottom