Accélérer XenForo: inclure la mise en cache

Statut
N'est pas ouverte pour d'autres réponses.

Albert Einstein

E = MC²
Premium
Inscription
2 Août 2013
Messages
1 936
Réactions
751
Points
10 316
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 ,
)
)
)
);



. APC:
PHP:
$ Config [ 'cache' ] [ 'backend' ] = 'Apc' ;

$ config [ 'cache' ] [ 'backendOptions' ] = array ();


. Filesystem:
PHP:
$ Config [ 'cache' ] [ 'backend' ] = 'File' ;

$ config [ 'cache' ] [ 'backendOptions' ] = array ( 'cache_dir' => 'D: \ xampp \ xampp \ htdocs \ XF \ upload \ Library \ cache ' );


.
 

WhiiTe'

Administateur
Ancien staff
Inscription
22 Octobre 2011
Messages
14 706
Réactions
8 492
Points
32 425
Fait une petite présentation :ok:
 
Statut
N'est pas ouverte pour d'autres réponses.
Haut