Hello!
Yes, zenphoto is a very good and easy to use photo album.
But what about the performance?
It seems like it is very very slow, the gallery startpage for me takes about 12 sec to load. I have 11 photo album categories there.
Is this becouse of zenphoto is badly coded or is it becouse something else?
(Almost all plugins are disabled to get better performance.)
(Under folders, if the images are allready cached it is little faster, but kinda slow there also.)
Great program, but slow performance = Not so great right now.
Best regards
Comments
My Gallery Stats are following :
810 Images (99 un-published)
49 Albums (8 un-published)
63 Comments
30 Pages (27 un-published)
56 News (1 un-published)
Maybe, this is server side problem ?
I have about 25.000 photos.
But does this make sense, they dont load at the same time?
a folder with 6 photos opens in about 3 sec.
the startpage with 10 folders (no photos) opens in about 13 sec.
My server is a windows 7 server with xampps(.com) software.
Maybe i am running some settings wrong, php memory was on 128MB i have set it to 3GB but that didnt help anything.
Thank you!
http://www.zenphoto.org/news/why-are-some-of-my-thumbnails-sized-images-not-generated-why-does-zenphoto-make-my-server-crash-while-processing-images-
This is not a limitation of Zenphoto but your server. Zenphoto can only do what the server power can.
You should set the album thumbnail to a fixed one for each album. Otherwise ZP choses one randomly and given the number of photos it will likely pick an uncached one. That of course then takes time depending of the things noted in the article above.
I have set all that php.ini settings correct now.
I know my server is the limit but that dont means the softwares/scripts is working correct :P or? hehe.
All the thumbnail pictures are set to fixed i am using the theme zpSkeleton.
And everytime i load the startpage it is the same pictures that is loading - so that is not the problem.
Wierd that it STILL DONT WORK!!
I think i need to pay someone to help me with these.
Thank you for reply!
I use this code once after uploading a big amount albums:
<?php
$galleryobject = new Gallery();
$albums = array();
while(next_album(True)) {
$albums[] = getAlbumLinkURL();
}
// go on deeper here if your folder structure is nested
foreach ($albums as $album) {
$albumobject = new Album($galleryobject,$album);
makeAlbumCurrent($albumobject);
while(next_image(FALSE,1)) {
$albumobject->setAlbumThumb($_zp_current_image->filename);
}
$albumobject->save();
}
?>
But be aware that it will probably set new thumbnails for existing albums.
I have a memory that i have seen that function, but not in the theme i am using right now "zpSkeleton".
zubizuri:
I didnt understand where to use that php code, please say where i need to run that.
Thank you for answer.
Maybe 1 sec faster lol :P
Any other ideas?
Best regards
Any serveradmin have any idea?
This is the speed statistic using theme zpskeleton:
9sec to open startpage.
-14 album-thumbs
-8 small photo-thumbs called "Latest Images".
5sec to open sub-folder.
-15 album-thumbs
Thanks for help!
Of course you should also try the html static cache.
...startpage....
#default theme = 2sec
>content: 14 big album-thumbs
#zpskeleton theme = 9sec
>content: 14 album-thumbs and 8 small photo-thumbs called "Latest Images" this photos are same every loadtest.
...sub-folder....
#default theme = 5sec
>content: 15 album-thumbs
#zpskeleton theme = 5sec
>content: 15 album-thumbs
I dont know if it is the theme ? ;(
Here is my bid:
https://www.freelancer.com/projects/PHP-Script-Install/Zenphoto-Windows-server-performance-slow.html?hash=n96XuwWNWYK0kPi5kHMXsjJC6L6eGTx4Ga4MApjkp20=
Thank you!