From 4a03b689260f85e5984818968dd46e8d72de54a1 Mon Sep 17 00:00:00 2001 From: mayur nilwant Date: Mon, 10 Jun 2024 22:41:39 -0400 Subject: [PATCH] Fixed issue with func calling shouldSaveAtAppLevel --- MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m b/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m index 9fda084..40911cf 100644 --- a/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m +++ b/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m @@ -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]]]; }