Stop caching tag_names with cache_method_as_redis_set

What does this MR do and why?

This MR introduces a feature flag mechanism to conditionally disable Redis caching for the tag_names method in the Repository model.

  • Adds a new feature flag avoid_tag_names_cache that allows bypassing the Redis cache for repository tag names.
  • When the feature flag is enabled, tag_names calls go directly to the raw repository instead of using the Redis cache.
  • Updates both the main tag_names method and the tag_names_include? helper method to respect the cache bypass.

References

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #577418 (closed)

Merge request reports

Loading