= or === ?
Would you mind adding a comment here to explain what's happening ?
Is it about updating a "cached total versions size" that is used to decide when to clean up ?