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

How the use the Caching?

Discussion in 'XenForo Questions and Support' started by Cory Booth, Oct 12, 2010.

  1. Cory Booth

    Cory Booth Well-Known Member

    Brent W likes this.
  2. Andy Huang

    Andy Huang Well-Known Member

    Questions are probably better off in the general support and questions forum. This forum should really be used exclusively for user contributed tips and tricks.
  3. Blandt

    Blandt Well-Known Member

    It's not easy to post this as a tip since there are hundreds of OSs/Servers

    case by case, no one size fit all unfortunately ... but as Andy said. If you ask for help with detailed system info, we'll guide you through it
  4. Dean

    Dean Well-Known Member

    I think this might be a better fit somewhere else.

    tips and tricks -> general support and questions.
  5. Andy Huang

    Andy Huang Well-Known Member

    Now that it is moved... Here's the answer you're looking for :)
    Config file suggested in the tips thread consists two parts:

    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions'] = array('caching'   =>  true,
    'automatic_serialization' => true,
    'lifetime'    => 1800
    $config['cache']['backend'] = 'File';
    $config['cache']['backendOptions'] = array('cache_dir'  => 'D:\xampp\xampp\htdocs\xf\upload\library\cache');
    First part configures the settings about your cache. Generally speaking, you'd probably only need to change lifetime (how long your cache stays alive in the system) unless you have some very specific things you're trying to do.

    Second part is more specific, and you would need to configure it according to your needs. The first line:
    $config['cache']['backend'] = 'File';
    ...tells the system what kind of cache backend you are intending to use. They are listed on the page you've linked. You take the last bit of what it says on the list and enter it into your parameter. In your particular case, for example, you would want to enter:
    $config['cache']['backend'] = 'Xcache';
    Then, the backendOptions is the options array that you'd use to fine-tune your settings. For Xcache, there are two options: user, and password. So, you would want to enter them like this:
    $config['cache']['backendOptions'] = array(
    'user'        => 'YOUR_XCACHE_USERNAME',
    'password'    => 'YOUR_XCACHE_PASSWORD'
    Replace the capital letters part with your information accordingly, save, and upload.
  6. Cory Booth

    Cory Booth Well-Known Member

    Awesome - Thanks!

    How ya'll picking this up so fast?
    I musta missed the manual... :)

Share This Page