Skip to content

Commit

Permalink
exam not pass, disable user clear cache
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Apr 22, 2024
1 parent d901740 commit 45a27fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Repositories/ExamRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ public function cronjobCheckout($ignoreTimeRange = false): int
$msgTransKey = 'exam.checkout_pass_message_content';
} else {
do_log("$currentLogPrefix, [will be banned]");
clear_user_cache($examUser->user->id, $examUser->user->passkey);
$subjectTransKey = 'exam.checkout_not_pass_message_subject';
$msgTransKey = 'exam.checkout_not_pass_message_content';
//ban user
Expand Down

0 comments on commit 45a27fa

Please sign in to comment.