Skip to content

Restore has_visible_content? to improve performance (cache)

Jarka Kadlecova requested to merge repo-cache-fix into master

What does this MR do?

It restores the has_visible_content? method that was removed as part of !13773 (merged)

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

The method was moved to ::Git but it is not cached there (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13773/diffs#149543c1229cd4353b9ad020503ffb49dedf5f1f_734_834). That's why we encountered big performance problems after the deployment of 10.0 .

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Merge request reports