redhat-exd-rebuilds / freshmaker

Freshmaker is a service that automatically rebuilds content.
https://redhat-exd-rebuilds.github.io/freshmaker/
MIT License
9 stars 23 forks source link

Remove caching for some find images APIs #241

Closed qixiang closed 1 year ago

qixiang commented 1 year ago

Caching should not be enabled for some find images APIs, because the result can change at any time, if we have caching for such APIs, images just be released may not be returned by these APIs which can cause wrong result of images to be rebuilt.

These APIs are from pyxis_gql module:

1. find_images_by_installed_rpms
2. find_images_by_names
3. find_images_by_name_version
4. find_images_by_repository

Caching for other find images APIs is fine:

1. find_images_by_nvr
2. find_images_by_nvrs