Image

image

if

image

byteSize

_cache

maxByteSize

_cache

add

image

);

while

_cache

count

_cache

maxCount

||

_cache

byteSize

cache

maxByteSize

cache

discardOldestImage

();

Migration guide

There might be situations where the ImageCache
is thrashing with the new logic where it wasn’t previously,
specifically if you load images that are larger than your
cache.maxByteSize value.
This can be remedied by one of the following approaches:

Increase the ImageCache.maxByteSize value
to accommodate larger images.