Updating page cache scenario

This commit is contained in:
Subramaniam, Ramya 2019-06-10 21:40:36 +05:30
parent 5864860045
commit 262f9c9d5b

View File

@ -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.
}
}