xcache for Xenforo?

Douglas Taylor

Active member
I have a fairly large board I'm converting to Xenforo and I have xcache installed.

Now is using Xcache possible for XF or would a difference cache system be more advantageous?
 
Thanks!

I threw the following into my config.php:

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

$config['cache']['backend'] = 'xcache';
 
Thanks!

I threw the following into my config.php:

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

$config['cache']['backend'] = 'xcache';


And did u notice an improvement?
 
I haven't put any cache instruction codes on library/config.php o_O
but I wonder why when I check on XCache -> List PHP & XCache -> List Var Data :oops:
the XCache is caching XF already :confused:
Code:
root@moria:~# cat /var/www/library/config.php
<?php

$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'xenforo';
$config['db']['password'] = 'passwd';
$config['db']['dbname'] = 'forum';

$config['superAdmins'] = '1';

root@moria:~#
 
Xcache will cache PHP pages by default. You don't need to specify anything in your config.php file to use it. You only need to specify Xcache if you want to use it for the backend cache or the cache sessions.
 
Top Bottom