Redis Cache By Xon

Redis Cache By Xon 2.17.2

No permission to download
No , single instance of a DB. Connections from client are different.

You can run multiple REDIS database though - one for say CSS , one for session cache and one for guests. That would be 3 DB.
 
Yup.


It is the number of simultaneous connections to Redis from php, due to how XF works it is basically a proxy for how many users you have at a given time.

So in my case I have only 1 connected client which is php? and this client (php) is used as a proxy to perform the requests of my forum visitors?
 
Think I got it, is this okay?

Code:
$config['cache']['sessions'] = true;

$config['cache']['enabled'] = true;
$config['cache']['provider'] = 'SV\RedisCache\Redis';
$config['cache']['config']  = array(
        'server' => 'x.x.x.x',
        'port' => 6379,
        'compress_data' => 6,
        'password' => 'removed',
        'use_lua' => true,
        'read_timeout' => 1,
        'timeout' => 2,
        'database' => 2,
    );
so i have a question do you have to create a databse for it or its just a value you have to set ? its my first time doing this
 
Generally 'no' for shared hosting, also it is outside support for this add-on for the hosting side of running Redis.
 
This is my configuration for Redis 5 on Centos 7:

Code:
bind 127.0.0.1
port 6379
daemonize yes

save 86400 1
stop-writes-on-bgsave-error no

maxmemory-policy allkeys-lfu
lfu-log-factor 10
lfu-decay-time 1

dir "/var/lib/redis"
logfile "/var/log/redis/redis.log"

Any comments on this?
 
Hi

Regarding "Count Moderated Threads", should we enable this to have a shared cache? Will this have some performance benefits if activated?
 
Regarding "Count Moderated Threads", should we enable this to have a shared cache? Will this have some performance benefits if activated?
Isn't any real benefits to having it enabled, it just makes the query more complex as it becomes per-person instead of sharable with other users
 
  • ErrorException: Fatal Error: Out of memory (allocated 2097152) (tried to allocate 131072 bytes)
  • src/addons/SV/RedisCache/Cm_Cache_Backend_Redis.php:432
  • Generated by: Unknown account
  • Mar 28, 2019 at 12:16 PM
Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}
Request state
array(4) {
["url"] => string(47) "/threads/finding-secant-with-calculator.573556/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Are you using pre-fork apache webserver? That is apparently breaking after allocating more than ~2mb, which is really really low.
 
Top Bottom