Page 2 of 2
Re: Internal Server Error while open modalbox.
Posted: 25 Jan 2010, 23:39
by Jan
Hi,now I understand. Yes the slideshow loads information about all pictures in the category. So if you have a lots of pictures in category you can use other detail view type, e.g. (shadowbox, highslide js (image only), modal box (image only), jak) to get only images which are displayed on the site to the slideshow.
the code you can find here:
components/com_phocagallery/views/detail (+ detail model)
Jan
Re: Internal Server Error while open modalbox.
Posted: 14 Mar 2010, 11:46
by hmayer1980
I have fould the variable used to add the files for the slideshow in
components/com_phocagallery/views/detail/tmpl/default_slideshowjs.php
it is this line "<?php echo $this->file->slideshowfiles ;?>"
but I did not find the definition of slideshowfiles
(could you point me to the place where it is assigned (have in mind a am stil lon version 2.2.3 because of other upgrade issues) the performance problem must be there.
The issue is there because my mysql server sais we are running a few 1000 queries for the single page - this all is about 1700 pictures in the query - and 1800 quieres point me to a query per image in that gategorie. a fix would be to do all images in that category at one.
Hannes
Re: Internal Server Error while open modalbox.
Posted: 15 Mar 2010, 23:33
by Jan
Hi, what you mean with definition of files?
Re: Internal Server Error while open modalbox.
Posted: 16 Mar 2010, 14:52
by hmayer1980
I meant where the variable is assigned.
I found the usage of the variable but did not find the assignment (and there must be the performance issue)
But in the meanwhile I got 2.6.2 running - and it seems the performance issue is fixed there (even if I did not check the code right now)
thanks.
Hannes
Re: Internal Server Error while open modalbox.
Posted: 16 Mar 2010, 15:27
by Jan
Hi, yes in last versions I have fixed some performance issues
mostly the varaibles are assigned in the model, or in view.html.php file. In default.php they are only displayed then.
Jan
Re: Internal Server Error while open modalbox.
Posted: 04 Apr 2010, 20:13
by hmayer1980
Jan wrote:Hi, yes in last versions I have fixed some performance issues
Its perfect now - I do see the change because since the upgrade the average number of mysql queries per phoca gallery page changed from above 100 to below 25
Many thanks - this greatly improved the overall performance.
Hannes
Re: Internal Server Error while open modalbox.
Posted: 08 Apr 2010, 11:08
by Jan
Great to hear it.
Jan