From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 18:24:38 +0000 (+0200) Subject: wip #5194 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=71b8e916f7b995998821c5442b5e8c7cf204f9a1;p=odl.git wip #5194 @0.25 --- diff --git a/app/Http/Controllers/Tools/FluidbookDownload.php b/app/Http/Controllers/Tools/FluidbookDownload.php index 51f570e..c4d7c9f 100644 --- a/app/Http/Controllers/Tools/FluidbookDownload.php +++ b/app/Http/Controllers/Tools/FluidbookDownload.php @@ -12,6 +12,6 @@ trait FluidbookDownload //ProcessFluidbook::dispatchSync(); $p = storage_path('fluidbook.zip'); Zip::archive(storage_path('fluidbook/out'), $p); - return response(null)->header('Content-Disposition', 'attachment;filename=package.zip')->header('Content-Type', Files::_getMimeType($p))->header('X-Sendfile', $p); + return response(null)->header('Content-Disposition', 'attachment;filename=package_' . date('YmdHis', filemtime($p)) . '.zip')->header('Content-Type', Files::_getMimeType($p))->header('X-Sendfile', $p); } } diff --git a/app/Jobs/ProducePackage.php b/app/Jobs/ProducePackage.php index 4df5641..1282009 100644 --- a/app/Jobs/ProducePackage.php +++ b/app/Jobs/ProducePackage.php @@ -12,7 +12,6 @@ use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; -use Illuminate\Support\Facades\Artisan; use Illuminate\View\View; class ProducePackage implements ShouldQueue, ShouldBeUnique @@ -104,7 +103,6 @@ class ProducePackage implements ShouldQueue, ShouldBeUnique { ProcessFluidbook::dispatchSync(); SearchIndex::dispatchSync(); - //Artisan::call('media-library:regenerate --only-missing'); }