I actually did spent some time reviewing the code on Github. As far as I can
tell, the LRUCache being used only clears out memory on a Purge. I'm
watching the downloaded files on disk (.../iPhone
Simulator/6.0/Applications/{bigLongGuid}/Library/Caches/Pictures/MonoTouch.Dialog)
and I see them come into the cache...but never leave. Hotel California. And
on subsequent sessions the app loads the pics clearly from cache.

I see in the ImageLoader code it makes requests with
NSUrlRequestCachePolicy.UseProtocolCachePolicy. There's some complicated
rules involved with this policy, at least as it's describe nicely on  this
post <http://blackpixel.com/blog/2012/05/caching-and-nsurlconnection.html> 
. But using Charles I don't see any remote http requests going out either.
So there could be something on the headers of the original response that are
causing it to cache longer than it should maybe? This is where my knowledge
gets a little fuzzy...

Anyhoo...thanks for the suggestion.




--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/ImageLoader-caching-tp4658025p4658027.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to