diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-25 12:23:40 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-25 12:23:40 +0100 |
| commit | 3ac522d22fcc4e1ea2d351e78f13af5556023b40 (patch) | |
| tree | e1843bade3b3b27c55d79a43a3f0f2315bf44d21 /edit.php | |
| parent | 389d36e820c28819efd9c6dd49b103bb1b0edf42 (diff) | |
| download | fisheye-3ac522d22fcc4e1ea2d351e78f13af5556023b40.tar.gz fisheye-3ac522d22fcc4e1ea2d351e78f13af5556023b40.tar.bz2 fisheye-3ac522d22fcc4e1ea2d351e78f13af5556023b40.zip | |
Fisheye: fix video thumbnail regeneration and gateway timeout
- FisheyeImage::renderThumbnails: route video/* mime types through
mime_video_create_thumbnail() instead of liberty_generate_thumbnails()
which only handles images — fixes regeneration of existing stored videos
- edit.php: send redirect before generateGalleryThumbnails() using
fastcgi_finish_request() so the browser is released immediately and
bulk thumbnail generation runs in background without nginx timeout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'edit.php')
| -rwxr-xr-x | edit.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -54,10 +54,13 @@ if( !empty( $_REQUEST['savegallery'] ) ) { // set the mappings, or if nothing checked, nuke them all $gContent->addToGalleries( !empty( $_REQUEST['gallery_additions'] ) ? $_REQUEST['gallery_additions'] : null ); + header("location: ".$gContent->getDisplayUrl() ); if( !empty( $_REQUEST['generate_thumbnails'] ) ) { + if( function_exists( 'fastcgi_finish_request' ) ) { + fastcgi_finish_request(); + } $gContent->generateGalleryThumbnails(); } - header("location: ".$gContent->getDisplayUrl() ); die(); } } elseif( !empty( $_REQUEST['delete'] ) ) { |
