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

XF 1.3 Opcache

Discussion in 'XenForo Questions and Support' started by Hristo Avramov, Dec 1, 2014.

  1. Hristo Avramov

    Hristo Avramov Active Member

    I want to use the php build opcache. What other cache can I use with it?

    Currently my config is this. I guess opcache works without configuring it in the config file.

    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
     
  2. Mike

    Mike XenForo Developer Staff Member

    Opcache is for caching PHP's opcodes. The config.php cache entries are for caching data, so it's generally unrelated. If you're going to go for something in config.php, I'd probably go memcache.
     
    Hristo Avramov likes this.
  3. Hristo Avramov

    Hristo Avramov Active Member

    @Mike , what about xcache, can I use opcache + xcache? They don't do the same thing, right?
     
  4. Mike

    Mike XenForo Developer Staff Member

    I wouldn't recommend it personally.
     
    maszd and Hristo Avramov like this.
  5. Hristo Avramov

    Hristo Avramov Active Member

    Okay, after I enable memcache, will the config work well?

    Code:
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'bf_';
    $config['cache']['backend'] = 'memcache'; 
     
  6. Mike

    Mike XenForo Developer Staff Member

  7. Hristo Avramov

    Hristo Avramov Active Member

    Is memcache the same like memcached ?
     
  8. Mike

    Mike XenForo Developer Staff Member

Share This Page