Forks count cache is not properly refreshed when forking projects
Problem
Right after successfully forking a project I noticed the amount of forks of the original project wasn't being updated:
That happens given the cache is only refreshed if we mark some project as a fork of another. In another words, passing a project
to Projects::ForksService#execute
. And it just happens through the API https://docs.gitlab.com/ee/api/projects.html#create-a-forked-fromto-relation-between-existing-projects.
Proposal
Refresh the cache in any forking scenario as the source project will always need a cache refresh.
Edited by Oswaldo Ferreira