Quote:
Originally Posted by Slynderdale
Is there a way to cache the thumbnail? Your current method isn't effiecent. If the forum has alot of image attachments, this hack could bog down the server because it would have to dynamicly create the thumbnail each time the page loads. Also I looked at the code, if the thread has quite a few images atatched, it will greatly increase the page load time because it generated each thumbnail and uses resampling which isn't the fastest method but the best quality method.
This hack is great for small forums, but larger ones that have alot of attached images would see a performance decrease if they have alot of page views.
|
actually slynderdale thats what im doing now, im coding that and along with a CP frontend, the only trouble is that im trying to avoid extra database queries than i have to so im trying to think of a method to allow some sort of cacheing, either by creating a temp folder where all the thumbnails would be stored and looked up for, or create a new database table to contain all the thumbnails which would be processed when you post the attachment rather than when viewing it...