From 262f9c9d5b5ac4826f504a959c603497e6f323cb Mon Sep 17 00:00:00 2001 From: "Subramaniam, Ramya" Date: Mon, 10 Jun 2019 21:40:36 +0530 Subject: [PATCH] Updating page cache scenario --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m index 00d94fd..6c4aebe 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m @@ -862,12 +862,11 @@ //Needs further enhancements based on the flags. BOOL shouldTriggerFromCache = [postCallsDict boolForKey:@"shouldTriggerFromCache"]; //Check if page is not from cache - if (!shouldTriggerFromCache && !loadObject.pageDataFromCache) { + if (!loadObject.pageDataFromCache || (shouldTriggerFromCache && loadObject.pageDataFromCache)) { [actionList enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) { [[MVMCoreActionHandler sharedActionHandler] handleActionWithDictionary:obj additionalData:nil delegateObject:nil]; }]; } - //Needs to handle when page is from cache. } }