Folder cache invalidation problem
Hi,
today I was connect to a remote site (FTP) via FlashFXP.
While I was working with this site, another person removed permissions for certain folders on the same remote site.
I was connected to verify that I can no longer access these folders...
As the person told me, he has removed permission, I tried to access the folder again. And as you can imagine, I was able to browse into that folder. So we start debugging what's wrong with the permission - nobody was aware about the folder cache in FXP at this moment.
After some minutes I realized the green arrow, indicating that the folder is cached. I flushed the cache and retried: As expected, I was unable to access the folder.
I run into a stale cache.
This could be avoided, if FXP would issue the "CWD" command. This would fail and FXP could react (invalidating the cache).
It's good to cache listing commands ("ls", "MLSD"), but I won't cache CWD commands.
Right, it's not a common use case... most people won't experience changes by others while connect to a remote site... but a CWD command is cheap enough and could save you from those stale cache issues...
Please think about it.
|