Earl
Well-known member
If I don't have page caching enabled, Do I have to enable it in order to add these lines to config.php?
I only have these memecach cache settings in my config.php
PHP:
$config['pageCache']['onSetup'] = function (\XF\PageCache $pageCache) {
$pageCache->setCacheIdGenerator(function(\XF\Http\Request $request) {
return \SV\BrowserDetection\CacheHelper::getPageCacheId($request);
});
};
I only have these memecach cache settings in my config.php
Code:
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'Memcached';
$config['cache']['config'] = [
'server' => '127.0.0.1'
];
$config['cache']['sessions'] = true;