Removed check for pageType for App level , making it generic on cachePolicy.

This commit is contained in:
mayur nilwant 2024-06-14 00:11:02 -04:00
parent 40106d3a9c
commit 161cc0132d
3 changed files with 2 additions and 3 deletions

View File

@ -141,7 +141,6 @@ extension PersistentCacheManager {
guard let cachePolicy = infoDictionary[KeyCachePolicy] as? Dictionary<String, Any>,
let appLevelKey = cachePolicy[KeyAppLevelCachePolicy] as? Bool,
appLevelKey == true,
self.shouldCachePageJSON(infoDictionary, pageType: PageTypeOfflineFeedback) == true,
self.isJSONExpired(infoDictionary) == false else {return false}
return true
}

View File

@ -15,7 +15,7 @@
extern NSString * _Nonnull const KeyCachePolicy;
extern NSString * _Nonnull const KeyCacheExpiry;
extern NSString * _Nonnull const KeyAppLevelCachePolicy;
extern NSString * _Nonnull const PageTypeOfflineFeedback;
//block returned when getting image

View File

@ -20,7 +20,7 @@
NSString * _Nonnull const KeyCachePolicy = @"cachePolicy";
NSString * _Nonnull const KeyCacheExpiry = @"expiry";
NSString * _Nonnull const KeyAppLevelCachePolicy = @"applicationLevelCache";
NSString * _Nonnull const PageTypeOfflineFeedback = @"offlineFeedback";
@interface MVMCoreCache ()