disable SQL intensive admin query cache
This commit is contained in:
parent
3df40b5bb7
commit
015da23d8e
@ -42,11 +42,13 @@ $start = microtime(true);
|
|||||||
if (!$statistics->getCurrentHashrate())
|
if (!$statistics->getCurrentHashrate())
|
||||||
$log->logError("getCurrentHashrate update failed");
|
$log->logError("getCurrentHashrate update failed");
|
||||||
$log->logInfo("getCurrentHashrate " . number_format(microtime(true) - $start, 2) . " seconds");
|
$log->logInfo("getCurrentHashrate " . number_format(microtime(true) - $start, 2) . " seconds");
|
||||||
|
/*
|
||||||
// Admin specific statistics, we cache the global query due to slowness
|
// Admin specific statistics, we cache the global query due to slowness
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
if (!$statistics->getAllUserStats('%'))
|
if (!$statistics->getAllUserStats('%'))
|
||||||
$log->logError("getAllUserStats update failed");
|
$log->logError("getAllUserStats update failed");
|
||||||
$log->logInfo("getAllUserStats " . number_format(microtime(true) - $start, 2) . " seconds");
|
$log->logInfo("getAllUserStats " . number_format(microtime(true) - $start, 2) . " seconds");
|
||||||
|
*/
|
||||||
|
|
||||||
// Per user share statistics based on all shares submitted
|
// Per user share statistics based on all shares submitted
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user