Backport for #4029 : Cache avg put time calculation
Merge pull request #4031 from emrahkocaman/fix/maintenance-3.x/cache-avg-put-time

Backport : Cache avg put time calculation