• ¡Bienvenido a XenFácil!

    Estás viendo el sitio como Invitado. Para poder participar en este sitio

    y obtendrás privilegios adicionales, acceso a otras áreas y mucho mas.

    ¡Es gratis!


    ¿Ya eres miembro? Inicia sesión
Acelerar el foro - Caché

Tutorial Acelerar el foro - Caché

Para XenForo...
  1. 1.0.x
  2. 1.1.x
  3. 1.2.x
Autor
lms
Imagen del autor
Avatar del autor
URL de XenForo
http://xenforo.com/community/threads/speed-up-your-board-caching.5699/
Zend Framework, que se usa en XenForo, trae grandes métodos de almacenamiento en caché.
Para ver todos los métodos de almacenamiento en caché disponible, visita Programmer’s Reference Guide of Zend Framework 2 — Zend Framework 2 2.4.7 documentation - Zend Framework

Por ejemplo:
Para activar el soporte Memcached añadir al final de tu library/config.php lo siguiente:

Insertar CODE, HTML o PHP:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching'   =>  true,
                                            'automatic_serialization' => true,
                                            'lifetime'    => 1800
);
$config['cache']['backend'] = 'Memcached';
$config['cache']['backendOptions'] = array(
    'backendOptions'=>array(
            'servers' =>array(
                            array(
                                'host' => 'localhost', // your memcached server ip /address
                                'port' => 11211        // memcached port
                            )
                        ),
             'compression' => false
     )
);
Para Filecache puedes usar algo como:
Insertar CODE, HTML o PHP:
$config['cache']['enabled'] = true;

$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] = array('cache_dir'  => '/temp');



$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array('caching'   =>  true,
                                            'automatic_serialization' => true,
                                            'lifetime'    => 1800
);


Para que funcione el cacheo en la Beta 2 debes añadir esta línea al archivo library/config.php:
Insertar CODE, HTML o PHP:
$config['cache']['enabled'] = true;

Truco publicado por ragtek en Speed up your Board /caching

Salud2
Autor
lms
Visitas
979
Primer lanzamiento
Última actualización
Votar
0,00 estrella(s) 0 calificaciones

Más recursos de lms

Arriba