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

xenForo Cache Options - clarification?

Discussion in 'Server Configuration and Hosting' started by xenTheory, Apr 16, 2013.

  1. xenTheory

    xenTheory Active Member

    Sorry if this seems like a stupid question, but...

    Going by the instructions in this page I've added

    Code:
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
    $config['cache']['cacheSessions'] = true;
    to my config.php file and restarted Apache. Did I miss some of the instructions or is that all I really need to do in order to utilize built in caching? I don't want to use APC or memcached.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    This is what I used to have configured when I was on a shared server: http://xenforo.com/community/threads/xcache-config-for-dummies-like-me.29137/#post-336488

    Code:
    $config['cache']['enabled'] = true;
    $config['cache']['cacheSessions'] = true;
    $config['cache']['backend'] = 'File';
    $config['cache']['backendOptions'] ['cache_dir'] = '/path/to/cache';
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions'] ['cache_id_prefix'] = 'xf_';
    More info here: http://xenforo.com/community/threads/some-users-saying-site-slow.31061/#post-355487
     
    hollosch likes this.
  3. xenTheory

    xenTheory Active Member

    Thank you, I'm on a dedicated but host other users. I would move to another dedicated just for my xF site but it's more downtime and hassle.

    I just checked and I'm using

    Code:
    $config['cache']['cacheSessions'] = true;
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
    $config['cache']['backend'] = 'File';
    
    But let me add the path in there. Cheers again.
     
  4. xenTheory

    xenTheory Active Member

    Ah, I've had to disable it as it causes problems with the Resource Manager and uploading giving an undefined error. Annoying but never mind. It's problably not an issue for most forum but the RM is used to handle files 400MB-1GB, which it does an OK job.
     
  5. xenTheory

    xenTheory Active Member

    Any idea as to why it would cause Resource Manager problems?
     
  6. BamBam

    BamBam Active Member

    Hey,

    I have the same Question. I have a VPS with Apache, is this all what i have to put in the config to enable Caching? I dont have the RM.

    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
    $config['cache']['cacheSessions'] = true;
     

Share This Page