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

xcache for Xenforo?

Discussion in 'XenForo Questions and Support' started by Douglas Taylor, Nov 11, 2011.

  1. Douglas Taylor

    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?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Douglas Taylor

    Douglas Taylor Active Member

    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';
     
    otto, Gizmo99 and danswano like this.
  4. jauburn

    jauburn Well-Known Member


    And did u notice an improvement?
     
  5. Douglas Taylor

    Douglas Taylor Active Member

    My install isn't public yet so I can't make a comparison quite yet.
     
  6. blemex

    blemex Member

    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:~#
     
  7. MattW

    MattW Well-Known Member

    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. blemex

    blemex Member

    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:
     

Share This Page