twitter/ios-twitter-image-pipeline

Setting maxBytes = 0 does not work

Closed this issue · 2 comments

In our project, we don't want a disk cache so we set [TIPGlobalConfiguration sharedInstance].maxBytesForAllDiskCaches = 0. However, that doesn't seem to be working. I DM'd with @NSProgrammer and he confirmed there are some places where 0 == off and others where 0 == unlimited (ex:

).

This is a legit issue and I can repro. Will work on a fix.

In the meantime, the workaround is to set the max bytes to be 1 byte.

Resolved with merge #42