OSCommerce Product Manager

OSCommerce Product Manager for Windows
Tasklist

FS#84 - Local image cache.

Attached to Project: OSCommerce Product Manager
Opened by Mario A. Valdez-Ramirez (mvaldez) - Wednesday, 25 August 2004, 11:57 GMT-6
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Sunday, 22 July 2007, 07:48 GMT-6
Task Type New feature
Category Backend / Core
Status Assigned
Assigned To Mario A. Valdez-Ramirez (mvaldez)
Operating System All
Severity Medium
Priority Low
Reported Version any
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

If we could maintain a local cache of the remote images, interactivity would be faster.

It would store images the first time it downloads it. If the image is already stored locally, ignore unless remote image is newer.

It would have an option for mass-synchronization, to download all images.

No upload synchorinization would be needed.
This task depends upon

Comment by Mario A. Valdez-Ramirez (mvaldez) - Friday, 15 July 2005, 23:46 GMT-6


This bug is related to Bug #118.


Comment by Mario A. Valdez-Ramirez (mvaldez) - Sunday, 22 July 2007, 07:48 GMT-6
We can just store all downloaded image to a hashed directory tree. Each file would be renamed to the hash of the full path name (dir + name) and then stored in a two-level directory tree (a root image tree and subdirectories named 0 to 9 and a to z) where each file would be stored in the directory which name matches the first letter of the hashed filename. This is to distribute all files evenly to improve performance.

Then, each time an image file is needed, the program calculate the hashed name, look it up in the cache directory tree and, if found, uses the local version, otherwise, download a new copy.

There will be a configuration option to enable or disable the cache.

The mass-synchronization mentioned above will not be needed.

Loading...