[FIX] Do not cache admin panel query for setting updates
This commit is contained in:
parent
cde7813da2
commit
fcd00be62c
@ -356,11 +356,10 @@ class Statistics extends Base {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Admin panel specific query
|
* Admin panel specific query
|
||||||
* @return data array invlid and valid shares for all accounts
|
* @return data array User settings and shares
|
||||||
**/
|
**/
|
||||||
public function getAllUserStats($filter='%') {
|
public function getAllUserStats($filter='%') {
|
||||||
$this->debug->append("STA " . __METHOD__, 4);
|
$this->debug->append("STA " . __METHOD__, 4);
|
||||||
if ($this->getGetCache() && $data = $this->memcache->get(__FUNCTION__ . $filter)) return $data;
|
|
||||||
$stmt = $this->mysqli->prepare("
|
$stmt = $this->mysqli->prepare("
|
||||||
SELECT
|
SELECT
|
||||||
a.id AS id,
|
a.id AS id,
|
||||||
@ -381,8 +380,7 @@ class Statistics extends Base {
|
|||||||
$row['shares'] = $this->getUserShares($row['id']);
|
$row['shares'] = $this->getUserShares($row['id']);
|
||||||
$aUsers[] = $row;
|
$aUsers[] = $row;
|
||||||
}
|
}
|
||||||
// Also cache this
|
return $aUsers;
|
||||||
return $this->memcache->setCache(__FUNCTION__ . $filter, $aUsers);
|
|
||||||
}
|
}
|
||||||
return $this->sqlError();
|
return $this->sqlError();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user