|
@@ 617-619 (lines=3) @@
|
| 614 |
|
$this->debug->append("STA " . __METHOD__, 4); |
| 615 |
|
switch ($type) { |
| 616 |
|
case 'shares': |
| 617 |
|
if ($this->getGetCache() && $data = $this->memcache->get(__FUNCTION__ . $type . $limit)) return $data; |
| 618 |
|
if ($data = $this->memcache->get(STATISTICS_ALL_USER_SHARES)) { |
| 619 |
|
// Use global cache to build data, if we have any data there |
| 620 |
|
if (!empty($data['data']) && is_array($data['data'])) { |
| 621 |
|
foreach($data['data'] as $key => $aUser) { |
| 622 |
|
$shares[$key] = $aUser['valid']; |
|
@@ 663-665 (lines=3) @@
|
| 660 |
|
break; |
| 661 |
|
|
| 662 |
|
case 'hashes': |
| 663 |
|
if ($this->getGetCache() && $data = $this->memcache->getStatic(__FUNCTION__ . $type . $limit)) return $data; |
| 664 |
|
$stmt = $this->mysqli->prepare(" |
| 665 |
|
SELECT |
| 666 |
|
a.username AS account, |
| 667 |
|
a.donate_percent AS donate_percent, |
| 668 |
|
a.is_anonymous AS is_anonymous, |