diskByteCount value not correct after removing object from cache
fvisticot opened this issue · 2 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
jstn commented
Well that's embarrassing. Update coming today, I will roll this in.
jstn commented
Fixed in 1.2.0