Fixed issue with func calling shouldSaveAtAppLevel

This commit is contained in:
mayur nilwant 2024-06-10 22:41:39 -04:00
parent 7f27bb502e
commit 4a03b68926

View File

@ -298,7 +298,7 @@ static NSString * const STATIC_CACHE_COMPONENT = @"StaticCache.txt";
- (void)addPageToPersistentCache:(nonnull NSDictionary *)jsonDictionary pageType:(nonnull NSString *)pageType expirationDate:(nonnull NSDate *)expirationDate{
NSError *error = nil;
[[PersistentCacheManager shared] saveWithData:jsonDictionary forKey:pageType path:[self getPathForPersistentCachePage:pageType isAppLevel:[self shouldPersistentlyCacheJSON:jsonDictionary]] expirationDate:expirationDate error:&error];
[[PersistentCacheManager shared] saveWithData:jsonDictionary forKey:pageType path:[self getPathForPersistentCachePage:pageType isAppLevel:[self shouldSaveAtAppLevel:jsonDictionary]] expirationDate:expirationDate error:&error];
if (error) {
[[MVMCoreLoggingHandler sharedLoggingHandler] addErrorToLog:[MVMCoreErrorObject createErrorObjectForNSError:error location:[NSString stringWithFormat:@"%s_%@",__PRETTY_FUNCTION__,pageType]]];
}