Use ArtifactCache's get_cache_size when calculating the quota
Description
This is a backport of a commit part of !679 (merged). This commit fixes #584 (closed)
The reason this commit fixes the issue is that now it does not scan for the whole artifact directory but only for the cas subdirectory. The extracts were the longest time to scan. The cas directory is relatively quick to scan.
Edited by Valentin David