• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

xcache for Xenforo?

#1
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?
 
#3
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';
 

jauburn

Well-known member
#4
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?
 
#6
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:~#
 

MattW

Well-known member
#7
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.
 
#8
Ok I want to use XCache for the Backend as well, so I put config above but same activity I had on the XCache -> List PHP & XCache -> List Var Data :cautious: