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

XF 1.1 Using cache methods, can you use both?

Discussion in 'XenForo Questions and Support' started by mrGTB, Nov 7, 2011.

  1. mrGTB

    mrGTB Well-Known Member

    I was reading this page here talking about Front-end and Back-end cache methods. I'm not sure if you can only use one, or use both front-end and back-end together?

    I'm using File Cache right now for back-end cache, so I'm asking could I also also enable "front-end" cache added in the config.php file also? Or is it one or the other, but you can't use both front-end and back-end cache methods together.
  2. RobParker

    RobParker Well-Known Member

    Did you find the answer to this?

    I have APC installed and am trying to find out the best way to utilise it. Should I turn on the front end cache as well as the back-end?

    This is what my config file currently looks like:

    ## Caching
    # http://xenforo.com/community/threads/speed-up-your-board-caching.5699/
    # http://xenforo.com/community/threads/tip-use-apc.6456/
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions'] = array(
    'caching' => true,
    'automatic_serialization' => true,
    'lifetime' => 10800
    $config['cache']['backend'] = 'Apc';
    $config['cache']['cacheSessions'] = true;
  3. ChemicalKicks

    ChemicalKicks Well-Known Member

    You can do both as far as I know, here's my config if it helps.

    $config['db']['host'] = 'xxxxxx';
    $config['db']['port'] = 'xxxxxx';
    $config['db']['username'] = 'xxxxxx';
    $config['db']['password'] = 'xxxxxx';
    $config['db']['dbname'] = 'xxxxxx';
    $config['superAdmins'] = '1';
    $config['externalDataPath'] = 'data';
    $config['externalDataUrl'] = 'http://static.url.org/data';
    $config['javaScriptUrl'] = 'http://static.url.org/js';
    $config['cache']['enabled'] = true;
    $config['cache']['cacheSessions'] = true;
    $config['cache']['backend'] = 'File';
    $config['cache']['backendOptions'] = array('cache_dir'  => '/var/sites/t/url.org/public_html/internal_data/cache');
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions'] = array('caching'  =>  true,
                                                'automatic_serialization' => true,
                                                'lifetime'    => 1800);

Share This Page