New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
various performance tweaks #14624
various performance tweaks #14624
Changes from all commits
7af1696
d6462b7
f786074
27e75c0
5adf6d1
102e515
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,8 +266,7 @@ public function render() | |
|
||
$this->loginModule = Piwik::getLoginPluginName(); | ||
|
||
$user = APIUsersManager::getInstance()->getUser($this->userLogin); | ||
$this->userAlias = $user['alias']; | ||
$this->userAlias = $this->userLogin; // can be removed in Matomo 4.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're not using the alias anymore, and we will even remove it in Matomo 4. Couldn't find any usage in our plugins of this... Before we were requesting the |
||
} catch (Exception $e) { | ||
Log::debug($e); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially I didn't get why there would be per request eg 140 calls to
Option::get()
from like 15 different places and 79 calls where actually hidding the DB. Until I realised for many of these values there is no value configured onoption
table and it would fetch the value from the DB again and again. Some option names it was fetching over 30 times.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a value is set later, it should go through ::set() anyway and be invalidated.