Skip to content

Commit

Permalink
feat: not to invalidate cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
watura committed Feb 17, 2020
1 parent 4d97e71 commit 5805f6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Model/Behavior/SaveUserBehavior.php
Expand Up @@ -414,7 +414,9 @@ public function updateLoginTime(Model $model, $userId) {
if (! $model->updateAll($update, $conditions)) {
throw new InternalErrorException(__d('net_commons', 'Internal Server Error'));
}
$model->invalidateCDN = false;
$model->commit();
$model->invalidateCDN = true;

} catch (Exception $ex) {
$model->rollback($ex);
Expand Down

0 comments on commit 5805f6e

Please sign in to comment.