Closed qixiang closed 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:
pyxis_gql
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
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:Caching for other find images APIs is fine: