The Website I'm developing allows some users to upload a custom header
image, which is seen by that user and all users signed up by that user.
I'm trying to decide the most efficient way to handle this. I don't want to
hit the database to get the image every time I render a page, and I don't
think I want an image stored in memory for every user online. Caching just
doesn't seem useful here as each user online could potentially be seeing a
different image.
One thought I'm having is to actually store the image in a file folder with
a name that matches the user's ID, and then I could just reference that
image from my HTML.
I'd be curious to see if anyone else had some ideas on this.
Thanks.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com