Forum Moderators: not2easy

Message Too Old, No Replies

How can I cache the images from my board?

Bandwidth gone through the roof need to cut it down

         

netchicken1

7:35 pm on Mar 24, 2007 (gmt 0)

10+ Year Member



I have a php based messageboard where people can upload images (as can all boards). However the last 7 images appear on the index pages and the "recent posts" page in their full size but thumbnailed 10 100px.

I havn't found a way to make a thumbnail copy in php and use it instead.

Since I have made this feature my bandwidth has gone through the roof, over 40gig so far this month.

Is there a way to make all images cache to the machine so that when people reload the page, or load another page with the images on it, it just pulls it from there?

It seems that each load of the pages, also downloads the images afresh.

Cheers :)

Quadrille

10:36 pm on Mar 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry, cannot helpwith the technical stuff; but it would be worth checking that your server is set up to stop hotlinking to the images. Somebody may be using your board as an image cache :)

cmarshall

2:45 am on Mar 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I highly recommend that you study the source code for Gallery 2 [gallery2.org]. It has an incredible amount of PHP image manipulation stuff in it.

netchicken1

4:11 am on Mar 25, 2007 (gmt 0)

10+ Year Member



Fantastic!

Thanks thats great :)