By default, caching XenForo disabled . To enable it, add to / library / config.php the following:
PHP:
$ Config [ 'cache' ] [ 'enabled' ] = true ;
$ config [ 'cache' ] [ 'frontend' ] = 'Core' ;
$ config [ 'cache' ] [ 'frontendOptions' ] = array ('caching' => true ,'automatic_serialization' => true ,'Lifetime' => 3600 ,'cache_id_prefix' => 'xf_');
Next, we need to choose what to use caching mechanism. Add to config.php configuration you want us: Memcached:
PHP:
$ Config [ 'cache' ] [ 'backend' ] = 'Memcached' ;[/COLOR][/FONT][/SIZE]
$ config [ 'cache' ] [ 'backendOptions' ] = array ('backendOptions' => array ('Compression' => false ,'servers' = > array (
array (
/ / your memcached Server IP / address'Host' => 'localhost' ,
/ / memcached port'port' => 11211 ,
)
)
)
);
PHP:
$ Config [ 'cache' ] [ 'backend' ] = 'Apc' ;
$ config [ 'cache' ] [ 'backendOptions' ] = array ();
PHP:
$ Config [ 'cache' ] [ 'backend' ] = 'File' ;
$ config [ 'cache' ] [ 'backendOptions' ] = array ( 'cache_dir' => '
\ xampp \ xampp \ htdocs \ XF \ upload \ Library \ cache ' );
PHP:
$ Config [ 'cache' ] [ 'enabled' ] = true ;
$ config [ 'cache' ] [ 'frontend' ] = 'Core' ;
$ config [ 'cache' ] [ 'frontendOptions' ] = array ('caching' => true ,'automatic_serialization' => true ,'Lifetime' => 3600 ,'cache_id_prefix' => 'xf_');
Next, we need to choose what to use caching mechanism. Add to config.php configuration you want us: Memcached:
PHP:
$ Config [ 'cache' ] [ 'backend' ] = 'Memcached' ;[/COLOR][/FONT][/SIZE]
$ config [ 'cache' ] [ 'backendOptions' ] = array ('backendOptions' => array ('Compression' => false ,'servers' = > array (
array (
/ / your memcached Server IP / address'Host' => 'localhost' ,
/ / memcached port'port' => 11211 ,
)
)
)
);
Vous devez être inscrit pour voir les liens ! Inscrivez-vous ou connectez-vous ici.
. APC:PHP:
$ Config [ 'cache' ] [ 'backend' ] = 'Apc' ;
$ config [ 'cache' ] [ 'backendOptions' ] = array ();
Vous devez être inscrit pour voir les liens ! Inscrivez-vous ou connectez-vous ici.
. Filesystem:PHP:
$ Config [ 'cache' ] [ 'backend' ] = 'File' ;
$ config [ 'cache' ] [ 'backendOptions' ] = array ( 'cache_dir' => '
Vous devez être inscrit pour voir les liens ! Inscrivez-vous ou connectez-vous ici.
.