Skip to content

Commit 6654d6d

Browse files
committed
MOBILE-4707 quiz: Delete attempt review cache if WS throws an error
1 parent 99f2dfb commit 6654d6d

File tree

1 file changed

+1
-0
lines changed
  • src/addons/mod/quiz/services

1 file changed

+1
-0
lines changed

src/addons/mod/quiz/services/quiz.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ export class AddonModQuizProvider {
515515
cacheKey: this.getAttemptReviewCacheKey(attemptId, page),
516516
component: ADDON_MOD_QUIZ_COMPONENT,
517517
componentId: options.cmId,
518+
deleteCacheIfWSError: true,
518519
...CoreSites.getReadingStrategyPreSets(options.readingStrategy), // Include reading strategy preSets.
519520
};
520521

0 commit comments

Comments
 (0)