Added file as Swift function.
This commit is contained in:
parent
0dc3ccb76a
commit
a484f5a193
@ -119,3 +119,17 @@ public class CachedData: Codable {
|
||||
}
|
||||
}
|
||||
}
|
||||
extension PersistentCacheManager {
|
||||
|
||||
func clearPersistentAppLevelCache() {
|
||||
do {
|
||||
|
||||
try PersistentCacheManager.shared.removeAllAppLevel()
|
||||
|
||||
}catch {
|
||||
|
||||
MVMCoreLoggingHandler.logDebugMessage(withDelegate:"Failed to delete app level data")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -199,5 +199,4 @@ typedef void(^MVMCoreGetImageBlock)(UIImage * _Nullable, NSData * _Nullable, BOO
|
||||
/// Loads an AVPlayerAsset from the shared asset cache.
|
||||
- (void)playerAssetFromFileName:(nonnull NSString *)filename trackKeys:(nonnull NSArray *)trackKeys onComplete:(void(^_Nonnull)(AVAsset * _Nullable, NSString * _Nonnull, MVMCoreErrorObject * _Nullable))completionHandler;
|
||||
|
||||
-(void) clearPersistentAppLevelCache;
|
||||
@end
|
||||
|
||||
@ -430,9 +430,6 @@ static NSString * const STATIC_CACHE_COMPONENT = @"StaticCache.txt";
|
||||
[[PersistentCacheManager shared] removeAllAndReturnError:nil];
|
||||
}
|
||||
|
||||
-(void) clearPersistentAppLevelCache{
|
||||
[[PersistentCacheManager shared] removeAllAppLevelAndReturnError:nil];
|
||||
}
|
||||
|
||||
- (void)clearMFCache {
|
||||
[self.pageTypeQueue cancelAllOperations];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user