Add cache_repodata toggle for github_rpm remotes
Cache generated repodata per replica and rebuild only when the remote's rpm_metadata fingerprint (count, max id) changes.
This commit is contained in:
@@ -77,6 +77,10 @@ type Remote struct {
|
||||
ReleasesRemote string `json:"releases_remote,omitempty"`
|
||||
ManagedBy string `json:"managed_by,omitempty"`
|
||||
|
||||
// CacheRepodata keeps a github_rpm remote's generated repodata in memory,
|
||||
// rebuilding it only when its metadata rows change.
|
||||
CacheRepodata bool `json:"cache_repodata"`
|
||||
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user