| Generally speaking, it has been my experience that you only want to store information in the database that needs to be stored in the database; in other words stuff you need to index for one reason or another. Storing things like images, while appealing, places unnecessary load on the DB engine and caching mechanism for no gain in terms of what the DB engine is designed to do. Best to use Áedán's suggestion and let the file system perform the caching, since it is designed for doing that.
(Note that DB purveyors will encourage you to store everything under the sun in the DB, because the more dependent you are on the DB engine, the less likely you are to migrate to another engine.)
__________________ Avatar and sig graphic by Pitch. Subscribers!
Ask about a custom graphic or avatar today! Later, Gizmo   |