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

XF 1.5 How can I use APCu and PHP OPcache?

Discussion in 'XenForo Questions and Support' started by querschlaeger, Jul 26, 2016.

  1. querschlaeger

    querschlaeger Member


    installed PHP 7 with Zend OPcache support and APCu as user cache.

    My question: How can I use APCu?

    If I add this to my config.php I get an error message (An unexpected error occurred. Please try again later.):

    $config['cache']['enabled'] = true;
    $config['cache']['backend'] = 'Apc';
  2. Mike

    Mike XenForo Developer Staff Member

    The APC cache backend explicitly looks for an extension called "apc" so it's unlikely to work with "apcu". You should be able to confirm this by looking at the error log in the control panel.
  3. querschlaeger

    querschlaeger Member

    I know it is looking for APC:

    Zend_Cache_Exception: The apc extension must be loaded for using this backend !
    But how can I use a user cache like APCu?
  4. Mike

    Mike XenForo Developer Staff Member

    It would require custom development or some code modifications.
  5. Bryan

    Bryan Member

    With PHP 7 you also need to install apcu_bc which will identify apcu as apc.
    Mr. Jinx and Robru like this.

Share This Page