diskByteCount value not correct after removing object from cache
fvisticot opened this issue · comments
fvisticot commented
After taking a look in the code it seems a "+" needs to be removed by "-"
- (BOOL)removeFileAndExecuteBlocksForKey:(NSString *)key
{
before:
self.byteCount = _byteCount + [byteSize unsignedIntegerValue]; // atomic
should be:
self.byteCount = _byteCount - [byteSize unsignedIntegerValue]; // atomic
Justin Ouellette commented
Well that's embarrassing. Update coming today, I will roll this in.
Justin Ouellette commented
Fixed in 1.2.0