When importing images into a Gallery, the derivatives are not generated. When the Gallery is viewed for the first time after importing, the derivatives are built, causing the page to talk longer than expected to load.

Comments

Hetta’s picture

fix here: http://drupal.org/node/159847 - which I closed again, cos that's a long gone issue.

dman’s picture

I actually prefer the on-demand version, because although it does slow down the first gallery view (big deal), it means that my image_import process itself doesn't timeout (actually a big deal!).
Temporarily slow images in a gallery I can deal with. They turn up next time you look.

Having to re-type my descriptions and things in a bulk import because it timed out halfway through is NOT fun!

... I'm using some imagecache watermark processes and giant sources, so processing time is a real problem on any server I've been working on.

Hetta’s picture

Have you tried adding set_time_limit(0); to form.inc ?
That solved a lot of the troubles I had with a 10K+ vocabulary, in node updates ...

dman’s picture

Yeah, it doesn't actually die ... much. But there's waiting for automated processes to run vs actually getting stuff done. If I can import a few galleries bada-bing, then background the browser before I go previewing the page ... or run a link-checker and walk away ... then my time is where it should be. Not waiting several mins, several times for a page to come back.
Ah, there's no perfect fix.
Put the whole import process into a cron queue and run a little auto-refreshing daemon process :)

sun’s picture

Priority: Critical » Normal
Status: Active » Closed (duplicate)