Skip to content

The BackendPackage Cache

Henne Vogelsang edited this page Aug 10, 2017 · 11 revisions

Each Package has one BackendPackage which serves as cache for additional backend Package data (srcmd5, verifymd5 etc.). For invalidating/refreshing this cache there are several jobs

UpdatePackageMetaJob

  • Refreshes BackendPackages of all Packages that are links
  • Deletes BackendPackages of all Packages that are not links
  • Schedules an UpdatePackagesIfDirtyJob for all Projects that contain Packages without BackendPackages

PackageUpdateIfDirtyJob(package)

Creates a BackendPackage if the frontend changed the Package sources (Package.sources_changed is called manually)

UpdateBackendInfosJob(package)

Refreshes BackendPackage everytime the Backend changed the sources (new revision is created, service ran, undelete).

UpdatePackagesIfDirtyJob(project)

Calls Package.update_if_dirty for all Packages without BackendPackages

Clone this wiki locally