Caching posted images

mercredi 30 avril 2014

Is there any way for SMF to cache the images posted by users inside their posts (URLs in the [img] tags) so that they would be stored on some directory local to the server and served from there instead of from the external URL?

I mean, when some user writes his post, and inserts some image between the [img] tags, the script downloads that image from the URL provided by the user into some directory local to the server, and when this post is being displayed, it loads the image form that local directory instead of the original external URL. But when the user edits his post, he can still see the external URL (if he wanted to update it or something).


I ask about that, because I find many broken URLs to external images which doesn't exist anymore, but they're still referred from the posts on my forum. If they were stored locally, this wouldn't be a problem, since they could be then loaded from the local cache.






0 commentaires:

Enregistrer un commentaire

 

Lorem

Ipsum

Dolor