Page MenuHomePhabricator

PDF pages slow on first opening
Closed, ResolvedPublic

Description

Author: shaunp

Description:
Not sure if this is a PDF handler issue or mediawiki.
But I uploaded a 47 page PDF and had to click on each page, so that they were then cached and fast for everyone else.
Is there anyway this can be improved?


Version: unspecified
Severity: minor
OS: Linux

Details

Reference
bz22902

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:58 PM
bzimport set Reference to bz22902.

jeluf wrote:

We could generate the images on upload, but then the upload would be very slow.
Or we could add a background job that generates them from the background queue. That queue is often

jeluf wrote:

... quite long and it would thus take some time before the images would be generated.

shaunp wrote:

I think adding a background job sounds like the best approach, maybe there could be a configuration option to enable or disable this?

mike wrote:

Added a background job to create thumbnails one by one in r76941.

Disabled by default to not change current behaviour. If you want to enable it, add

$wgPdfCreateThumbnailsInJobQueue = true;

to your LocalSettings.php