GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — storeCacheType .disk no longer keeps disk-cache hits out of the memory cache (regression in 5.21.6) · Issue #3893 · SDWebImage/SDWebImage Open DescriptionNew Issue Checklist
Issue Info
Issue Description and StepsSince 5.21.6, a load whose context sets Repro: https://gist.github.com/oeddyo/2a9c5cabe5d7833fbd495b9d01ebf09b.
let diskOnly: [SDWebImageContextOption: Any] = [ .queryCacheType: SDImageCacheType.disk.rawValue, .storeCacheType: SDImageCacheType.disk.rawValue, ] manager.loadImage(with: url, options: [], context: diskOnly, progress: nil) { image, _, _, cacheType, _, _ in // cacheType == .disk, and on 5.21.6+ this is true: print(cache.imageFromMemoryCache(forKey: key) != nil) }
The iOS simulator gives the same results, built from source. Cause. 84c74d1 (#3866) added a write-back to // Write back the disk image into memory cache, with the correct key if (cacheType == SDImageCacheTypeDisk) { // Sync [imageCache storeImage:cachedImage imageData:nil forKey:key cacheType:SDImageCacheTypeMemory completion:nil]; } The sync it replaced, in A disk-only query never reads the memory cache ( Impact. We hit this in an iOS app through expo-image, whose A comment on #3866 reports another effect of the same write-back: a thumbnail stored in memory under the original's key. Expected. The write-back honours Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | |||||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |