Added method that will be used to clear app levvel cache.

This commit is contained in:
mayur nilwant 2024-06-10 15:41:38 -04:00
parent 522bc5d9cb
commit 2b8bd98bf0
2 changed files with 5 additions and 0 deletions

View File

@ -201,4 +201,5 @@ typedef void(^MVMCoreGetImageBlock)(UIImage * _Nullable, NSData * _Nullable, BOO
- (BOOL)shouldSaveAtAppLevel:(nonnull NSDictionary *)jsonDictionary;
-(void) clearPersistentAppLevelCache;
@end

View File

@ -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];