UIImage-PDF icon indicating copy to clipboard operation
UIImage-PDF copied to clipboard

Cache key

Open jorisroling opened this issue 10 years ago • 1 comments

Hi Nigel,

I think there is a error in the cacheFilenameForURL:atSize:atScaleFactor:atPage: method. It bases the cacheRoot on [ filePath lastPathComponent ], at that is not enough when different PDF's have the same lastPathComponent. I changed it to [ resourceURL description ] and now the full URL is considered in determining the MD5 key. And no more wrong cache hits here...

Regards, Joris

jorisroling avatar Dec 02 '14 14:12 jorisroling

Hi Joris. Thanks for that observation. I shall update...

mindbrix avatar Dec 05 '14 09:12 mindbrix