XF 2.1 frontend and frontendOptions for caching in XF 2.1?

sajal

Active member
We are migrating site from 1.5.x to XF 2.1. In our XF 1.5 config.php file, we've following settings defined. I'm not sure what should I replace it with in the XF 2.1 config file. So, basically, I'm trying to find 1-to-1 mapping of each setting for the XF 2.1 version.

PHP:
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] = array(
'caching' => true,
'automatic_serialization' => false,
'lifetime' => 10800,
'cache_id_prefix' => 'XF1_'
);

So, does this code is anymore releavant, or I do have to replace it with other code, as we have a very large site, we're using Redis as a caching.

At least, I understand I've to use following code to cache sessions and other back-end stuff:

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

Any help greatly appreciated.
 
Top Bottom