Manual caching

Hi

Is it possible to get php to manually cache all images for a website when the home page is loaded, allowing the other pages to load more quickly? This may or may not be a good idea, but the site is small so the total number of images will take about 5 secs on a 10Mbit line. The graphics are complex and need to be single jpgs rather than css trickery.

Cheers
DiegloRaveeeoNufcRaverAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
Have you tried putting the images into the $_SESSION array?  You might also want to look into memcached.

And you might also want to look into higher JPG compression or combining small images into larger ones.  The overhead to load each little image is the same as the overhead to load one large image.  This overhead may turn out to be greater than the extra work required for the one large image!

best regards, ~Ray
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray PaseurCommented:
Also, post a link to the site with the graphics on it - there may be other ideas once I have seen what you are doing now.

Thanks, ~Ray
0
DiegloRaveeeoNufcRaverAuthor Commented:
Cheers

the site is currently comprising of several medium sized images (1000*300 or 400*400 etc.). The link is:

http://92.48.65.172/~dtbsound/astro_and_prism/index.php
0
Ray PaseurCommented:
Your site seems very fast - the pages loaded instantly.  I would not worry too much about this if I were you.  

You cannot control the speed of the client connection, and the site may appear slow to anyone using dial-up or slow connections, but on a T-1 it's just fine.

If you are concerned about the speed on a slow connection, your only choice is to redesign the site to use lower-weight graphics.  But as I said, its inherent performance looks great to me.

Best regards, ~Ray
0
DiegloRaveeeoNufcRaverAuthor Commented:
Cheers,

I've been trying to find percentages of people using broadband as oppose to dial-up because I'm on a 10MBit line and I'm not sure how many other people are. I would expect the site to be promoted to other people with quite high connections due to the nature of the content and the artists promoted and so it wouldnt be a huge problem but it was interesting to find out. I'll check out the solutions you mentioned in the first post never the less.

Regards
Kol
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.