[ADDED] New memcache option for contrib caches
This commit is contained in:
parent
cb4211a618
commit
975b41276d
@ -671,8 +671,11 @@ class Statistics extends Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// No cached data, fallback to SQL ONLY if we don't use memcache
|
// No cached data, fallback to SQL ONLY if we don't use memcache
|
||||||
if ($this->config['memcache']['enabled'])
|
if ($this->config['memcache']['enabled'] && $this->config['memcache']['force']['contrib_shares']) {
|
||||||
|
// Do not use SQL queries and a second layer of caching
|
||||||
|
$this->debug->append('Skipping SQL queries due to config option', 4);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
$stmt = $this->mysqli->prepare("
|
$stmt = $this->mysqli->prepare("
|
||||||
SELECT
|
SELECT
|
||||||
a.username AS account,
|
a.username AS account,
|
||||||
|
|||||||
@ -222,6 +222,7 @@ $config['memcache']['port'] = 11211;
|
|||||||
$config['memcache']['keyprefix'] = 'mpos_';
|
$config['memcache']['keyprefix'] = 'mpos_';
|
||||||
$config['memcache']['expiration'] = 90;
|
$config['memcache']['expiration'] = 90;
|
||||||
$config['memcache']['splay'] = 15;
|
$config['memcache']['splay'] = 15;
|
||||||
|
$config['memcache']['force']['contrib_shares'] = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cookies
|
* Cookies
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user