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

XF 2.0 Defining a Cache

Chris D

XenForo developer
Staff member
#5
Opcache systems just run and work automatically. They don’t require any configuration.

That’s not what these cache providers are for. They’re for caching sessions and certain data caches, and that concept really hasn’t changed since XF1.

The cache providers listed are the ones we’d recommend.
 

Nirjonadda

Well-known member
#6
What 'password' need put here For Redis?

Code:
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'Redis';
$config['cache']['config'] = [
    'host' => '127.0.0.1',
    'password' => 'password'
];
 

Chris D

XenForo developer
Staff member
#7
You can remove it if there isn’t one. Otherwise it would be whatever password you configured in Redis.
 

Nirjonadda

Well-known member
#8
You can remove it if there isn’t one. Otherwise it would be whatever password you configured in Redis.
I have not configured Redis password, Its cPanel installed. So its will be after remove the password?

Code:
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'Redis';
$config['cache']['config'] = [
    'host' => '127.0.0.1',
];