Feature #784
Plugins: Cache remote (HTTP) image files
Status: | Fixed | Start date: | 11/18/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 100% | ||
Category: | Filesystem | |||
Target version: | 3.4 |
Description
I'm developing a plugin that use several images loaded from http. That images are loaded to the directory to make menus.
The problem is the images are always the same, but showtime is always getting them from http witch takes time.
Because of this the user have to wait to see the images and the menu is not fluid.
Could it be possible to cache http images on disk for a period of time?
Associated revisions
glw: Make image loaders load expired images from cache if they are available.
It then retries (at lowest priority) to refetch those images and will
replace the displayed image if the contents have changed
Fixes #784
History
#1
Updated by Andreas Smas about 11 years ago
- Category changed from Plugins to Filesystem
- Status changed from New to Need feedback
Showtime will cache the images correctly based on the HTTP headers.
Even so, I think some of the HTTP servers out there just does this incorrectly.
But i'm thinking of a better way so that showtime can always use images from cache and just
reload them afterwards.
Do you have an URL to the images in question?
Just want to make sure that the current cache mechanism is not broken.
#2
Updated by andreus sebes about 11 years ago
Hi andreas,
This problem is for all images i get from HTTP.
Try this URL for example:
http://www.ps3crunch.net/forum/images/styles/UndergroundStyle/style/logot.png
#3
Updated by andreus sebes about 11 years ago
I tested with more images and some are being cached because that load instantly.
#4
Updated by Andreas Smas about 11 years ago
- Status changed from Need feedback to Fixed
- % Done changed from 0 to 100
Applied in changeset b888f9b76da6d035f9021b20ce21b80fbadd2ccc.
#5
Updated by andreus sebes about 11 years ago
Working very well! thanks andreas