From 2b8bd98bf0515c8cbba2c9052c6defcab1875e05 Mon Sep 17 00:00:00 2001 From: mayur nilwant Date: Mon, 10 Jun 2024 15:41:38 -0400 Subject: [PATCH] Added method that will be used to clear app levvel cache. --- MVMCore/MVMCore/OtherHandlers/MVMCoreCache.h | 1 + MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.h b/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.h index bc56be9..6e05e75 100644 --- a/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.h +++ b/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.h @@ -201,4 +201,5 @@ typedef void(^MVMCoreGetImageBlock)(UIImage * _Nullable, NSData * _Nullable, BOO - (BOOL)shouldSaveAtAppLevel:(nonnull NSDictionary *)jsonDictionary; +-(void) clearPersistentAppLevelCache; @end diff --git a/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m b/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m index e412d38..f50e6a5 100644 --- a/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m +++ b/MVMCore/MVMCore/OtherHandlers/MVMCoreCache.m @@ -430,6 +430,10 @@ static NSString * const STATIC_CACHE_COMPONENT = @"StaticCache.txt"; [[PersistentCacheManager shared] removeAllAndReturnError:nil]; } +-(void) clearPersistentAppLevelCache;{ + [[PersistentCacheManager shared] removeAllAppLevelAndReturnError:nil]; +} + - (void)clearMFCache { [self.pageTypeQueue cancelAllOperations]; [self.moduleQueue cancelAllOperations];