XF 2.1 Approval queue improvements, Admin options UI tweaks, Guest page caching and more!

Welcome to the fifth in our "Have you seen...?" series for XF 2.1. In case you've not yet seen the previous entries, (why not?!) you can check them out here.

As ever, to ensure you're kept up to date, we strongly recommend giving that "Watch forum" link a tap and make sure you enable email notifications if you haven't done so already 🙂
 

Nuno

Well-known member
How to enable guest page caching? Sounds very useful. I read the first and last pages but I do not see answer.
Thank you.
No, it's not disabled. The explanation is wrong though. It suggests setting things that aren't necessary (though you can override them if necessary) and the code edit is 100% incorrect.

You need to specifically specify where you're putting page cache data. It's unlikely that you want to store it with other data, as it will likely reduce the use of that cache. To do that, you specify something like:

Code:
$config['cache']['context']['page'] = [
        'provider' => 'Memcached',
        'config' => ['server' => '127.0.0.1']
];

Change the provider and config to suit. Then you just need to enable page caching:

Code:
$config['pageCache']['enabled'] = true;

(Assuming global caching is also enabled.)

The other lines only need to be set if you wish to change their values.

We'd have to ask that you update the resource to the "correct" approach, or we'd likely want to delete it for being incorrect. Note that this sort of information will go into our manual when 2.1 is closer to stable.
 

JoyFreak

Well-known member
So like this in the config.php?

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

$config['pageCache']['enabled'] = true;
 

Hristo Avramov

Active member
I have this command $config['Cache']['enabled'] = true;

Is it the same as the recommended line down or I should change it? Basically the only difference is cache to pagecache but who knows, its better to ask.

$config['pageCache']['enabled'] = true;
 

Chris D

XenForo developer
Staff member
Please post in a new thread in the appropriate forum if you require support.

We won’t genereally be monitoring these threads for support questions.
 

djbaxter

in memoriam 1947-2022
If you have permissions to moderate and approve posts or registrations, click on the Moderator dropdown at the very top left of the forum. One of the options takes you to the approval queue.
 
Top