Мемкеш через сокет

Статус
В этой теме нельзя размещать новые ответы.
XenForo is out of the box compatible with several caching solutions. It will use them for the registry, can use them for the sessions, and it will reduce your database query count.

For help about configuring MemCache, read the official XenForo documentation, available here:

If you are using a single box installation (or multi-box but rather not share the cache over the network), you can speed MemCache marginally by using a unix socket instead of a tcp-ip socket.

Configuring XenForo to use memcache from a unix socket

On your library/config.php, change your existing configuration to

Код:
'backendOptions' => array(
        'servers' => array(
            array( 'host' => 'unix:///dev/shm/memcache.socket',  'port' => 0 )
        ),
        'compression' => false
    ),
Change /dev/shm/memcache.socket to the path to which you are running memcache from. If you are not on a 2.6 kernel you could use /tmp/memcache.socket

Starting memcache from a socket

To start your memcache daemon on a socket, use the parameters
Код:
-s /dev/shm/memcache.socket -a 0755
Instead of starting it from a regular port when you run the memcached process.
 
Статус
В этой теме нельзя размещать новые ответы.
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу