| @@ -424,9 +424,9 @@ | ||
| 424 | 424 | if ($completedAt !== null) { |
| 425 | 425 | $progress[$dataType]['completed_at'] = $completedAt; |
| 426 | 426 | } |
| 427 | 427 | |
| 428 | - update_option('yatra_migration_progress', $progress); | |
| 428 | + update_option('yatra_migration_progress', $progress, false); | |
| 429 | 429 | } |
| 430 | 430 | |
| 431 | 431 | /** |
| 432 | 432 | * Migrate all data types. |
| @@ -574,9 +574,9 @@ | ||
| 574 | 574 | 'completed_at' => null, |
| 575 | 575 | ]; |
| 576 | 576 | } |
| 577 | 577 | |
| 578 | - update_option('yatra_migration_progress', $progress); | |
| 578 | + update_option('yatra_migration_progress', $progress, false); | |
| 579 | 579 | update_option('yatra_migration_started_at', current_time('mysql')); |
| 580 | 580 | delete_option('yatra_migration_rewrite_flushed_for_started_at'); |
| 581 | 581 | } |
| 582 | 582 | |
| @@ -670,9 +670,9 @@ | ||
| 670 | 670 | } |
| 671 | 671 | } |
| 672 | 672 | |
| 673 | 673 | if ($updated) { |
| 674 | - update_option('yatra_migration_progress', $progress); | |
| 674 | + update_option('yatra_migration_progress', $progress, false); | |
| 675 | 675 | } |
| 676 | 676 | |
| 677 | 677 | Logger::info('Migration cancelled', ['source' => 'migration']); |
| 678 | 678 | |
| @@ -745,9 +745,9 @@ | ||
| 745 | 745 | } |
| 746 | 746 | } |
| 747 | 747 | |
| 748 | 748 | if ($progressChanged) { |
| 749 | - update_option('yatra_migration_progress', $progress); | |
| 749 | + update_option('yatra_migration_progress', $progress, false); | |
| 750 | 750 | } |
| 751 | 751 | |
| 752 | 752 | if ($allComplete && !empty($progress)) { |
| 753 | 753 | $this->finalizeProgressIfAllComplete(); |
| @@ -985,9 +985,9 @@ | ||
| 985 | 985 | 'duration' => $duration, |
| 986 | 986 | 'timestamp' => current_time('mysql'), |
| 987 | 987 | ]; |
| 988 | 988 | |
| 989 | - update_option('yatra_migration_log', $log); | |
| 989 | + update_option('yatra_migration_log', $log, false); // autoload=false: migration-time only | |
| 990 | 990 | } |
| 991 | 991 | |
| 992 | 992 | private function getMigrationLog(): array |
| 993 | 993 | { |
| @@ -1023,9 +1023,9 @@ | ||
| 1023 | 1023 | } |
| 1024 | 1024 | |
| 1025 | 1025 | [$progress, $zeroChanged] = $this->applyZeroCountAutoComplete($progress); |
| 1026 | 1026 | if ($zeroChanged) { |
| 1027 | - update_option('yatra_migration_progress', $progress); | |
| 1027 | + update_option('yatra_migration_progress', $progress, false); | |
| 1028 | 1028 | } |
| 1029 | 1029 | |
| 1030 | 1030 | foreach ($progress as $status) { |
| 1031 | 1031 | if (($status['status'] ?? '') !== 'completed') { |