XF 2.1 Redis configuration problem

Anatoliy

Well-known member
I'm trying to enable guest page caching. My hosting provider installed Redis on my VPS. However when I put in src/config.php file the following code I get "http error 500" in the browser.

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

if I put this code, I get in my browser something like "Unexpected error. Please come back later"

$config['cache']['enabled'] = true;
$config['pageCache']['enabled'] = true;
$config['cache']['context']['page']['provider'] = 'Redis';
$config['cache']['context']['page']['config'] = ['host' => '127.0.0.1', 'password' => 'my_password'];

Please advice what I'm doing wrong and how it should be done correctly.
Thanks in advance.
 

Anatoliy

Well-known member
i am quite happy with the loading speed of pages on my own website with redis enabled

checked your site with pagespeed insight... well, it doesn't look good at all...

First Contentful Paint 2.1 s
Speed Index 5.3 s
Time to Interactive 7.4 s
First Meaningful Paint 2.2 s
First CPU Idle 6.5 s
Max Potential First Input Delay 750 ms


here is mine

First Contentful Paint 1.7 s
Speed Index 3.1 s
Time to Interactive 3.4 s
First Meaningful Paint 1.7 s
First CPU Idle 2.8 s
Max Potential First Input Delay 190 ms
 
Top