mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-21 00:48:43 +03:00

When list commits, some of the commits authors are the same at many situations. But current logic will always fetch the same GPG keys from database. This PR will cache the GPG keys, emails and users for the context so that reducing the database queries. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
13 lines
327 B
Go
13 lines
327 B
Go
// Copyright 2025 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package cachegroup
|
|
|
|
const (
|
|
User = "user"
|
|
EmailAvatarLink = "email_avatar_link"
|
|
UserEmailAddresses = "user_email_addresses"
|
|
GPGKeyWithSubKeys = "gpg_key_with_subkeys"
|
|
RepoUserPermission = "repo_user_permission"
|
|
)
|