Topic "What is 'CDCache'?"

Author Message
chris7197

Guest


Hi, I'm doing a forensic ana lysis of a computer (a fake one set up by my teacher for my coursework so don't worry :p), and there's information of connecting to a server in the HKEY_CURRENT_USER/Software/Martin Prikryl/WinSCP 2/Configuration/CDCache. I thought this was a sort of 'log' for FTP/SFTP connections, however I am not able to reproduce this registry key (no CDCache folder exists on my machine).

Does anyone know what this signifies?

Thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
It is cache for visited directories.
_________________
Martin Prikryl
ks
[View user's profile]
Donor
Joined: 2008-09-18
Posts: 67
Location: Moscow
I store WinSCP settings in the registry, and when I make backups by exporting the branches like
HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\Configuration
the backup file is quite large (~1Mb) because of the CDCache node. If I clear it the reg-file become quite small. Of course, the same info is stored in the registry and it is no good to store so much info there.

1. WinSCP seems not to delete CDCache nodes of deleted sessions. If I delete a session its node in CDCache is still there. Thus if I use WinSCP for years, the CDCache node only keeps growing.
Also, the CDCache node stores info based on the username / the server IP, like cust@12.34.56.78. But if I edit a session's IP / username (sometimes that happens) the old node is probably not changed / deleted, while it should be. Hence the CDCache node unnecessarily grows again.

2. Why have CDCache at all?! I need it within a session for history, to be able to go back and forth. But can I ever make use of it if I restart a session?! If not, why keep the old info?!

Question
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
The cache entry is identified by the hostname/username, so that it is used, no matter if you have stored session/site for that combination saved or not.

You can turn off the cache completely (not recommended) or make it non-permanent:
http://winscp.net/eng/docs/ui_login_directories
_________________
Martin Prikryl
ks
[View user's profile]
Donor
Joined: 2008-09-18
Posts: 67
Location: Moscow
I made the cache non-permanent, still I don't get what this cache is for in future sessions if all it stores is a list of visited directories.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License