Hi,
I have this Windows Forms app that uses a lot of large images. Images are stored in the DB and clients connect to the DB over a VPN. Since we didn't want to pull the image from the DB each time the client uses one, we cached the image on the client. In the .Get factory method of the business object, I check to see if the image is on the client machine. If it is, we use that, if it's not, we pull from the DB and write to the cache folder, so it's available the next time. The cached images are named by the PK.
Now we need to update images. The application does this, but the problem is that the old image is on several client machines, and since the PK is the same, the business object uses the cached image and not the new image in the DB.
I'm trying to figure out the best way to let clients know, or have the clients check to see if an image has been updated. My first thought was to have a last modified column in the DB, but that would mean checking every time an image is used. The images are changed infrequently.
Just fishing for ideas on the best way to handle this. Any thoughts appreciated.
Thanks,
Mike
Copyright (c) Marimer LLC