Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How do we optimize 3.4.0 thumbnail display?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-13-2003, 09:06 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default How do we optimize 3.4.0 thumbnail display?

Another x-cart member pointed this out to me.

3.4.0 lets you use the file system to store the images BUT the display still uses the image.php to query the data base for each and every thumbnail images.....

This can result in 20-100 extra queries, has anyone modified the products.tpl template NOT to use image.php file but to simply use image/product.jpg for example?

This data should be available in the listing query so I 'm not sure why the x-cart team chose to do it the image.php way, why have 30 extra seperate queries instead of 1?
Reply With Quote
  #2  
Old 05-14-2003, 07:12 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default

ugh, tell me that isn't true. So does that mean that images will still not be cached... more wasted bandwidth and a slower site.
Reply With Quote
  #3  
Old 05-15-2003, 10:09 AM
 
jpsowin jpsowin is offline
 

X-Adept
  
Join Date: Sep 2002
Posts: 459
 

Default

So what you are saying is this is a worthless feature for speeding anything up?
__________________
Joshua Sowin
...taking things one TPL at a time.
Reply With Quote
  #4  
Old 05-26-2003, 10:42 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

Quote:
Originally Posted by jpsowin
So what you are saying is this is a worthless feature for speeding anything up?

Yes and not, it means the jpgs aren't being fed through the database but it does mean the database is still being hit XX number of times per page for silly reasons.

Really not the best way of doing things, not sure why x-cart team didn't give us access to say "{thumbnailimage}" in templates :-\ pretty obvious I would have thought...
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:59 PM.

   

 
X-Cart forums © 2001-2020