Stop caching repository size in Redis

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Repository#size is cached in Redis, as some time ago it wasn't stored as in the project_statistics table too. But now, the only caller I seem to be able to find is the the updater of the cache. At this time this service doesn't even invalidate the cache.

If we stop caching it, I suspect it won't have a large effect on Gitaly. Although its hard to predict as the ProjectCacheWorker runs quite a lot, however, most of those runs aren't to update the repository size.

Edited by 🤖 GitLab Bot 🤖