View Single Post
  #1  
Old 06-11-2003, 06:10 AM
  groovico's Avatar 
groovico groovico is offline
 

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

Default Anyone interested in funding a change the Image handling?

I'm not sure how many of you have noticed. But even version 3.4.2 still hits the image.php file for all images displayed (3.4.1 change log is misleading!).

No images are being cached by the browsers so your servers are still being hit for every image on every page display in your stores raising both SQL hits and server hits and really slowing the sites down more than you realise.

I've proposed this to the x-cart team and I'm waiting for a cost, as it's an addition I want added to x-cart over all would anyone be willing to help pay a portion for getting it done? It would benefit us all.


Below was sent to x-cart
------------------------------------------------------
Dear sirs,

I've sent the below to the support arm of x-cart. Since it doesn't appear to have been really implemented the correct way I was wondering what it will cost to have it done properly as an addition to my own x-cart and ALSO included in the base x-cart system.

Please read below and provide me with a quote. I willing to pay to have this feature added to the overall x-cart system as it's actually becoming a sore point with me, I've taken a look at the image.php and it's still hitting the databases even in version 3.4.2 and still preventing the browser from caching the images for images that are in simply the file system.


What I would like done:
-------------------------------------------------------
I'd like the image handling changed in the next release version, the current method is still a waste of server resources, even for images in the system it is still hitting the image.php all the time (3.4.2 still does it).

The URL method currently implemented defeats the purpose of having the images uploaded and managed by x-cart.

Can some URL paths be added to the image config (just under the server path box) for example

$thumbURLpath="http://www.mysite.com/files/thumbs"
$detailURLpath="http://www.mysite.com/files/detail"
$categoryIconUrlPath="http://www.mysite.com/files/icons"

This could then be used by the product list templates and product detail templates display to genererate *REAL* paths to the image, not using image.php at all if the files are in the file system

<img src=$thumbpath.$imagefile>

Instead of the <img src=image.php?>

It would be a simple addition and speed up x-cart immensly, it would allow the browsers to cache the images properly and drastically cut down on SQL/Server hits which are still there for no reason.

I really don't understand why image.php still has to query the database for every image shown again when the product template can send it to the browser as a real path?

It would really benifit x-cart as a whole if the above could be done properly.


Please provide me with a quotation for the above and confirm whether or not this would become a part of the next x-cart releases. I am only interested in paying for it as long as it is reasonable cost and a guaranteed addition to all future releases.

-------------------------------------------


Let me know if you would be interested in helping out with this!

Thanks,

Groovico
Reply With Quote