From 25867dd049cd994176c0fc529aeb15e2981d6963 Mon Sep 17 00:00:00 2001 From: "Khan, Arshad" Date: Mon, 19 Oct 2020 23:36:23 +0530 Subject: [PATCH 1/2] making removeCaches method public --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h index e82187e..dcc957c 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h @@ -73,6 +73,10 @@ * @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 pages and modules to be removed. */ ++ (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.*/ From ebf0014a5a6025a3a25dcbe8a514def015da80bc Mon Sep 17 00:00:00 2001 From: "Khan, Arshad" Date: Mon, 19 Oct 2020 15:10:04 -0400 Subject: [PATCH 2/2] Update MVMCoreLoadRequestOperation.h --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h index dcc957c..f7a274b 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.h @@ -74,7 +74,10 @@ + (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 pages and modules to be removed. */ + * @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.