I posted a similar question a few weeks ago, but now have a better idea what's going on.
The site I'm working on has about 700 images in the images folder. When inserting an image for example in an image TV, it can take a very long time (about 1,5 minutes) to see all of the image thumbnails in the browser. Analyzing this with the Google Chrome inspector, I see all of the thumbnails are loaded, one after another (in total there are about 700 requests being made, with a total of 2 MB). This takes about 1,5 minutes, and it blocks everything else, the thumbnail doesn't show for the image TV until they have all loaded (even after closing the browser window), saving the document hangs and even the frontend is not loaded until after all thumbs have loaded in the manager.
If I open the browser another time shortly after, all the thumbs are shown immediately, and only the ones I select are requested, and everything is fast. But if I try a few minutes later everything is gone and all the requests are made again.
I read that phpthumb makes a new connection for each thumb it requests. Can I change this somehow? Or is it a server problem that it takes 1,5 minutes to process 700 requests (or is this normal?). Or would it be possible to cache the images for a much longer time in the modx browser?
I don't get any errors in the error log and I'm on:
MODX Revolution 2.1.3-pl (traditional).
PHP: 5.3.8
MYSQL database version: 5.0.92
ExtJS: 3.4.0
Apache 2.0
(please let me know if you need to know something else.)
The images in the file browser have this url:
http://mywebsite.com/connectors/system/phpthumb.php?src=images%2Fimage.jpg&w=80&h=60&f=jpg&q=90&HTTP_MODAUTH
=modx4eb008ae0e4ab3.85382980_14f0c50d65c4072.74025567&wctx=
web&basePath=content%2F&basePathRelative=1&baseUrl=content%2F&baseUrlRelative=1
Is this correct? Shouldn't this be the link to the cached file in core/cache/phpthumb?
Anyone recognize this or have an idea what could be the problem?
Thanks for any help!
[ed. note: michelle84 last edited this post 14 years, 8 months ago.]