Merge pull request #5540 from jippi/patch-1

fix: don't restore memory limit after cities import
This commit is contained in:
daniel 2025-02-03 18:41:30 -07:00 committed by GitHub
commit 49a6e69858
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,6 @@ class ImportCities extends Command
*/ */
public function handle() public function handle()
{ {
$old_memory_limit = ini_get('memory_limit');
ini_set('memory_limit', '256M'); ini_set('memory_limit', '256M');
$path = storage_path('app/cities.json'); $path = storage_path('app/cities.json');
@ -137,7 +136,6 @@ class ImportCities extends Command
$this->line(''); $this->line('');
$this->info('Successfully imported ' . $cityCount . ' entries!'); $this->info('Successfully imported ' . $cityCount . ' entries!');
$this->line(''); $this->line('');
ini_set('memory_limit', $old_memory_limit);
return; return;
} }