XF 2.3 Best filesystem cache and guest cast settings?

So just a quick query. At present I have the original global caching setup enabled via Filesystem, which works well:

Code:
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'Filesystem';
$config['cache']['config'] = [
    'directory' => '/myfolder'
];
$config['cache']['sessions'] = true;

After doing a lot of reading, I think that in order to enable Guest Caching the best approach is to do this is below. But am I correct? Take note that the "/myfolder" is just an example and not my full path, obviously.

Code:
//Global Cache
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'Filesystem';
$config['cache']['config'] = [
    'directory' => '/myfolder'
];

//Global Session Cache
$config['cache']['sessions'] = true;

//Guest Page Cache
$config['pageCache']['enabled'] = true;
$config['cache']['context']['page']['provider'] = 'Filesystem';
$config['cache']['context']['page']['config'] = [
    'directory' => '/myfolderguest'
];

//Guest CSS Cache
$config['cache']['context']['css']['provider'] = 'Filesystem';
$config['cache']['context']['css']['config'] = [
    'directory' => '/myfolderguestcss'
];

Also do I need to do the same for guest sessions or registry, or can / should I just leave those out?
 
Last edited:
Back
Top Bottom