diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h index e82187e..f7a274b 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h @@ -73,6 +73,13 @@ * @return True if the calling process should continue. */ + (BOOL)cachePages:(nullable NSDictionary *)pages loadObject:(nonnull MVMCoreLoadObject *)loadObject error:(MVMCoreErrorObject *_Nullable *_Nullable)error; +/** Removes the Cached pages and modules. + * @param cacheDictionary a dictionary of two array of strings: pagesToClear and modulesToClear, + it will remove all the modules from Cache mentioned in modulesToClear array, + it will remove all the pages from Cache mentioned in pagesToClear array. + */ ++ (void)removeCaches:(nullable NSDictionary *)cacheDictionary; + /** Creates the view controller based on the load object passed in. * @param loadObject The load data from the cache or server. * @param completionHandler The completion handler to load once finished. Returns any loaded view controller and the load.*/