Merge 8d9a766f6a into 6dffb98e40
This commit is contained in:
commit
e332f7bd89
@ -463,11 +463,13 @@ class Menu
|
||||
|
||||
$isSuperUser = $this->dbi->isSuperUser();
|
||||
$isCreateOrGrantUser = $this->dbi->isGrantUser() || $this->dbi->isCreateUser();
|
||||
if (SessionCache::has('binary_logs')) {
|
||||
$binaryLogs = SessionCache::get('binary_logs');
|
||||
} else {
|
||||
$binaryLogs = $this->dbi->fetchResult('SHOW BINARY LOGS', 'Log_name');
|
||||
SessionCache::set('binary_logs', $binaryLogs);
|
||||
if ($isSuperUser) {
|
||||
if (SessionCache::has('binary_logs')) {
|
||||
$binaryLogs = SessionCache::get('binary_logs');
|
||||
} else {
|
||||
$binaryLogs = $this->dbi->fetchResult('SHOW BINARY LOGS', 'Log_name');
|
||||
SessionCache::set('binary_logs', $binaryLogs);
|
||||
}
|
||||
}
|
||||
|
||||
$tabs = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user