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

File cache... where?

Discussion in 'XenForo Questions and Support' started by Gladius, Dec 24, 2012.

  1. Gladius

    Gladius Well-Known Member

    So I've turned file caching on...

    Code:
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
    $config['cache']['cacheSessions'] = true;
    $config['cache']['backend'] = 'File';
    But where's the cache kept? I can't find it, heh. Is there some way to check that it's all working as it should?

    Initially I wanted to go for XCache but I'd have to disable suPHP which I'm not keen on for security reasons... I don't suppose there's an alternative to file cache that works with suPHP?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    For reference:
    http://framework.zend.com/manual/1.12/en/zend.cache.backends.html#zend.cache.backends.file

    By default the "cache_dir" is the system tmp directory. But you can change it by specifying backendOptions:

    Code:
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
    
    $config['cache']['cacheSessions'] = true;
    
    $config['cache']['backend'] = 'File';
    $config['cache']['backendOptions'] = array(
    	'cache_dir' => '/path/to/cache/dir/'
    );
    
     
  3. Gladius

    Gladius Well-Known Member

    Thanks... is there some way to check that both front and back end are working? And is there any alternative to file cache that works with suPHP?
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Just check the directory to see that data is being written. Then you know it's working.
     
  5. Gladius

    Gladius Well-Known Member

    OK, I'd still like to know if there's any alternative to file cache that works with suPHP, though. :D
     

Share This Page