ISPr_Winter
Member
So just a quick query. At present I have the original global caching setup enabled via Filesystem, which works well:
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.
Also do I need to do the same for guest sessions or registry, or can / should I just leave those out?
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: