Rebuild Thumbs timeout / needs repeated browser reloading

Discussion corner for Developers of Serendipity.
Post Reply
jdrodrigues
Regular
Posts: 36
Joined: Sun Feb 12, 2006 9:27 pm
Location: London
Contact:

Rebuild Thumbs timeout / needs repeated browser reloading

Post by jdrodrigues »

My uploads directory has close to 200 subdirectories and thousands of images. I use FTP to upload the images and thumbnails, properly named. I then use "Rebuild Thumbs" to synchronize the directories to the database.

Unfortunately often my browser will appear to timeout (though I have seen no proof that this is the case) and I have to repeatedly reload the page 3 to 5 times before it will actually finish its task and tell me it has synchronized the images to the database.


Any thoughts ?

I am using Serendipity 1.0-beta2, PHP 4.4.4 & MySQL 4.1.20.

However I am reconstructing my site offline using Serendipity 1.1beta5 in the hopes that it will be better & faster and am planning a move to pair networks shared hosting (don't yet have the budget for VPS) where they run PHP 4.3.10 and MySQL 4.1.20, with PHP 5.1.1 available as a CGI (though I don't know if that can be used for s9y).

Any thoughts on this ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Rebuild Thumbs timeout / needs repeated browser reloadin

Post by garvinhicking »

Hi!

How many images do you usually submit in a batch? 200 subdirectories to cycle are a lot of work, especially if the DB needs to be synchronized with this as well, and check every single image in that folders.

Serendipity 1.1 has optimized synchronizing capabilites that synchronize directories without the "sync thumbnails" option, which might speed it all up for you.

In your case you might need to build a plugin specifically created to add the images you just uploaded?

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jdrodrigues
Regular
Posts: 36
Joined: Sun Feb 12, 2006 9:27 pm
Location: London
Contact:

Post by jdrodrigues »

Thanks Garvin, I was considering the same thing. Although, since I don't know how to go about writing a plug-in, or have the time to learn right now, I will try and put together some sort of add on PHP page to upload images to specific sub-directories and synch to the database.

I am happy to hear however that in the mean time moving to 1.1 will result in some speed improvements.

- Joel
Post Reply