Redis Cache By Xon

Redis Cache By Xon 2.18.1

No permission to download
Yes, you should add 'database' => #, to the config part.
# = your db number. Usually this is a value between 0 en 9.
Every site should have it's own database. Default is 0. In your case you could use database 1 and 2.
Some hosting providers may limit the number of databases.
 
Yes, you should add 'database' => #, to the config part.
# = your db number. Usually this is a value between 0 en 9.
Every site should have it's own database. Default is 0. In your case you could use database 1 and 2.
Some hosting providers may limit the number of databases.

Thank you! ;)(y)
 
I disabled Memcached and connected Redis, the server LA first grew noticeably, then went down, but literally after 5 minutes the site is down, giving an error of 500. I had to disable the Redis in config.

Who has ever encountered such a thing?


My config
$config['cache']['enabled'] = true;
$config['cache']['namespace'] = 'xfaredis';
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = [
'host' => '127.0.0.1',
'port' => 6379,
'timeout' => 2.0,
'database' => 1,
'compress_data' => 1,
];
 
I installed the add-on (Thank you @Xon !), added the code that I found in the readme file into config.php:
Code:
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = array(
        'server' => '127.0.0.1',
        'port' => 6379,
        'connect_retries' => 2,
        'use_lua' => true,
        'compress_data' => 2,
        'read_timeout' => 1,
        'timeout' => 1,
    );
It looks like it works (I can see information in Tools > Redis information).

However, it looks like page caching for guests doesn't work anymore. Before I had this code in my config:
Code:
$config['cache']['enabled'] = true;
$config['pageCache']['enabled'] = true;
$config['cache']['context']['page']['provider'] = 'Redis';
$config['cache']['context']['page']['config'] = ['host' => '127.0.0.1'];

So how to enable page cache for guests with the add-on?
 
...but you would still need page-provider and page-config. Without it, guestpage caching doesn't work (at least on my server).
So you can just add this:
Code:
$config['pageCache']['enabled'] = true;
$config['cache']['context']['page']['provider'] = 'Redis';
$config['cache']['context']['page']['config'] = ['host' => '127.0.0.1'];

You can leave page provider as 'Redis'.
 
...but you would still need page-provider and page-config. Without it, guestpage caching doesn't work (at least on my server).
So you can just add this:
Code:
$config['pageCache']['enabled'] = true;
$config['cache']['context']['page']['provider'] = 'Redis';
$config['cache']['context']['page']['config'] = ['host' => '127.0.0.1'];

You can leave page provider as 'Redis'.
will it use 2 connectors (or whatever you call them?) addon's for general and xF's native for page cache?
 
...but you would still need page-provider and page-config. Without it, guestpage caching doesn't work (at least on my server).
So you can just add this:
Code:
$config['pageCache']['enabled'] = true;
$config['cache']['context']['page']['provider'] = 'Redis';
$config['cache']['context']['page']['config'] = ['host' => '127.0.0.1'];

You can leave page provider as 'Redis'.
Yehaa! It works! Thank you!
So I ended up with this

Code:
$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config'] = array(
        'server' => '127.0.0.1',
        'port' => 6379,
        'connect_retries' => 2,
        'use_lua' => true,
        'compress_data' => 2,
        'read_timeout' => 1,
        'timeout' => 1,
    );
$config['pageCache']['enabled'] = true;
$config['cache']['context']['page']['provider'] = 'Redis';
$config['cache']['context']['page']['config'] = ['host' => '127.0.0.1'];
 
That is correct. Xon's add-on doesn't do anything extra with the guest page caching so you can safely use the default Redis provider for this.
You could also use SV\RedisCache\Redis, doesn't really matter. It will 'fallback' to Redis anyway.
 
ps: Check if you don't have the 'logout' problem as described in this topic:

This is an unsovled mistery for me :oops:
 
ps: Check if you don't have the 'logout' problem as described in this topic:
Nope. Logged in and out just fine. Looks like everything works fine.

So I came only through half of this thread, and have about 10 pages to read, but already have 2 questions.
1. There was an indication that there are other add-ons that use this one. What are they? Maybe I want them? )
2. In addition to page cashing redis can cache css, right? and it will speed up page load, right? I was not able to figure out this one.
 
I noticed in configs posted in this thread people enable session cache. What is it?
Is it something for returning visitors or something? Is it for members or for guests?
 
Could you explain where it needs to be configured?
Something like this;
 
Back
Top Bottom