Forums / Bug Reports / [Done v1.3.9e] Additional Product Images increases dramaticaly parse time

[Done v1.3.9e] Additional Product Images increases dramaticaly parse time

Locked

Started by franekz on 8 Jul 2010, 10:34 AM · Views: 1,081

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
8 Jul 2010, 10:34 AM
#1
franekz avatar

franekz

New Zenner

Join Date:
Aug 2009
Location:
London
Posts:
9
Plugin Contributions:
0

[Done v1.3.9e] Additional Product Images increases dramaticaly parse time

Hi. I an using 1.3.9.c. New installation on shared Red hat server.
Site is a bookstore. more than 29000 acticve products, more than 59000 in the database. 65000 pictures in images folder.

I had parse time when shop was displaying product information from 25 to 45 seconds. After I have commented tpl_modules_additional_images.php parse time is 0.7sec.

I dont need this module (have only 1 picture of a book) but I thing that i should report it.

Peter

8 Jul 2010, 4:08 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.9e] Additional Product Images increases dramaticaly parse time

Thanks for the update ... on how you handled this ...

I am looking at the code and this could probably utilize the switch setting in the Catalog ... Product Types ... EDIT LAYOUT ...

Show Product Additional Images
Display Additional Images on Product Info 0= off 1= on

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Jul 2010, 7:20 PM
#3
franekz avatar

franekz

New Zenner

Join Date:
Aug 2009
Location:
London
Posts:
9
Plugin Contributions:
0

Re: [Done v1.3.9e] Additional Product Images increases dramaticaly parse time

Ajeh:

Thanks for the update ... on how you handled this ...

I am looking at the code and this could probably utilize the switch setting in the Catalog ... Product Types ... EDIT LAYOUT ...

Hi,
You are definitely right, but using correct switch doesn't change the problem (module is too slow - 20sec to parse :no:).

Thanks
Peter

10 Jul 2010, 10:22 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.9e] Additional Product Images increases dramaticaly parse time

Edit the file:
/includes/modules/additional_images.php

And change the line on 19 to:

if ($products_image != '' && $flag_show_product_info_additional_images != 0) {

Does it listen to that switch better and speed things up? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Jul 2010, 2:22 AM
#5
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: [Done v1.3.9e] Additional Product Images increases dramaticaly parse time

Ajeh:

Edit the file:
/includes/modules/additional_images.php

And change the line on 19 to:

if ($products_image != '' && $flag_show_product_info_additional_images != 0) {

>  
> Does it listen to that switch better and speed things up? :unsure:
 
 
I didn't make the above change because I wouldn't know whether it sped it up or not but if you can include this change if it does speed things up into the "E" version that would be awesome.
 
My "perception" is that things have speed up with setting additional pictures to 0.
 
Thanks!
 
Shrimp