Batch add files slow displaying directory listing Batch add files slow displaying directory listing
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Batch add files slow displaying directory listing

Started by darrinmc, June 15, 2006, 06:12:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darrinmc

When I click on Batch add files it takes 3-5 minutes for the searchnew.php page to display the first directory listing. This only happens on my shared web host machine. Is there anything I can do to speed up the display of this page or debug what the problem is? I've verified the permissions on the albums dir are correct according to the FAQ. The number of directories in albums/uploaded_files doesn't seem to have an effect on how long it takes.

Vargha

hehe i dont think there is a way to speed it up  :D
may i see the url to your gallery
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F838%2Frangarang4xn.jpg&hash=48b4c3087515cafe09fc6d3f7ee19dce86328d8e)

darrinmc

I removed the recursive call to display_dir_tree($folder . $file . '/', $ident . '    '); in the display_dir_tree function in searchnew.php and it's much faster now. Is this going to cause any downstream problems? It looks like the page is caching the directory tree the first time this page is accessed. My directory structure contains thousands of files and it's way too slow.

Thanks!

Joachim Müller

I suggest reviewing the folder structure / nesting. Use the browsable batch-add interface if you can.