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

XF 1.5 cache not created

Discussion in 'XenForo Questions and Support' started by kkarki, Jun 1, 2016.

  1. kkarki

    kkarki Member

    Here's the config of my forum 1.5. No matter what I try the cache content is not created under configured directory.

    <?php
    $config['db']['host'] = 'localhost';
    $config['db']['port'] = '3306';
    $config['db']['username'] = 'root';
    $config['db']['password'] = 'root';
    $config['db']['dbname'] = 'xenforo';
    $config['superAdmins'] = '1';
    $config['cache']['cacheSessions'] = true;
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions'] = array(
    'cache_dir' => '/web/xenforo/data/cache',
    // 'cache_dir' => 'data/cache', (This is not working too)
    'caching' => true,
    'automatic_serialization' => true,
    'lifetime' => 0,
    'cache_id_prefix' => 'XenForo'
    );
    //$config['cache']['backend'] = 'WinCache';
    $config['cache']['backend'] = 'File';
    $config['cache']['cache_dir'] = '/web/xenforo/data/cache';
    //$config['cache']['cache_dir'] = 'data/cache'; (This is not working too)
    // COOKIES WILL WORK ON ANY SUBDOMAIN OF yoursite.com
    $config['cookie'] = array(
    'prefix' => 'xf',
    'path' => '/',
    'domain' => 'local.xenforo'
    );

    As you could see, I've specified "/web/xenforo/data/cache" as my cache directory. But no content is generated there, it's 777 :(
     
  2. Mike

    Mike XenForo Developer Staff Member

    Your cache_dir needs to be under backendOptions:
    Code:
    $config['cache']['backendOptions']['cache_dir'] = '/web/xenforo/data/cache';
     
  3. kkarki

    kkarki Member

    @Mike, Thanks that was it.
     
  4. kkarki

    kkarki Member

    @Mike, by d way, how can I enable page cache?
     
  5. Mike

    Mike XenForo Developer Staff Member

    There's no implementation of a page cache by default.
     
  6. kkarki

    kkarki Member

Share This Page