Currently, each field of the profile settings is fetching the account information. This patch makes it so that only the first time do a DB call and all the later ones are cached. Reduce by 5 queries when loading the profile setting page and I suppose other pages are affected since loading a page generates always fetch at least once the account information to see if the profile feature is enabled for the user. Signed-off-by: Carl Schwan <carl@carlschwan.eu> |
||
|---|---|---|
| .. | ||
| Account.php | ||
| AccountManager.php | ||
| AccountProperty.php | ||
| AccountPropertyCollection.php | ||
| Hooks.php | ||
| TAccountsHelper.php | ||