OSCommerce Product Manager

OSCommerce Product Manager for Windows
Tasklist

FS#290 - Cache remote image and remote subdirectories lists.

Attached to Project: OSCommerce Product Manager
Opened by Mario A. Valdez-Ramirez (mvaldez) - Wednesday, 05 October 2005, 20:41 GMT-6
Last edited by Mario A. Valdez-Ramirez (mvaldez) - Monday, 10 October 2005, 04:19 GMT-6
Task Type New feature
Category Backend / Core
Status Closed
Assigned To Mario A. Valdez-Ramirez (mvaldez)
Operating System All
Severity Medium
Priority Immediate
Reported Version any
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

An user requested in the web forums that the remote image list (loaded when selecting a remote image) be cached locally. That's a good idea to improve the performance, specially with slow net links.

On the same topic, it would be good to cache also the remote subdirectory list (loaded EVERY time the user wants to upload an image).

High priority for this one.
This task depends upon

Closed by  Mario A. Valdez-Ramirez (mvaldez)
Monday, 10 October 2005, 04:19 GMT-6
Reason for closing:  
Comment by Mario A. Valdez-Ramirez (mvaldez) - Wednesday, 05 October 2005, 20:43 GMT-6

There should be a global configuration option to allow/disallow the caching. Also, if the caching is enabled, a button for reloading it manually should be displayed.
Comment by Mario A. Valdez-Ramirez (mvaldez) - Sunday, 09 October 2005, 23:29 GMT-6

Should we cache the listdirs and list remote queries when first used or when connecting to the server?

I think it would make sense to load them when first connecting. Of course I am assuming the user start a connection to edit several products, not only to change one price or so.

If the users are mostly doing small changes (and most not being image-related) then loading those results at the start will delay most users without providing them any benefit.

I think loading them when first using them would be wiser.
Comment by Mario A. Valdez-Ramirez (mvaldez) - Sunday, 09 October 2005, 23:39 GMT-6

When uploading a new image, if the image is uploaded to a non-existent directory, it will be created. Then the directory listing needs to be updated.

The same applies to the image listing everytime a file is uploaded.
Comment by Mario A. Valdez-Ramirez (mvaldez) - Monday, 10 October 2005, 03:41 GMT-6
Implemented partially.
No config option.
No manual reload.
Comment by Mario A. Valdez-Ramirez (mvaldez) - Monday, 10 October 2005, 03:56 GMT-6
Done the configuration option.
Comment by Mario A. Valdez-Ramirez (mvaldez) - Monday, 10 October 2005, 04:19 GMT-6
Implemented the manual reload.

Implementation is as follow:
* Image dirs and full image listing are cached locally after the first usage.
* If a directory is created after uploading an image, the directory listing is cleared (so that it is reloaded next time it is needed).
* If any image is succesfully loaded, the full image listing is cleared (so that it is reloaded next time it is needed).
* The user can clear both caches anytime by pressing a button.



Closing.

Loading...