I thought I'd messed up when I moved my Windows TEMP folder

I used IMDisk to create a RAM drive for my Rolling Cache. It took some doing to get it syncing back and forth with the Image File, but I solved it (ask away if you want to know what I did…)

Anyway, one of the settings in IMDisk lets you create a TEMP folder on the RAM disk. Cool, I can edit my TEMP and TMP environment User Variables (NOT System Variables!!!) to point to it instead of the C: drive. Faster, takes a load off the NVMe writes, and it doesn’t matter that it goes away when the computer is restarted.

Or so I thought… :cold_sweat:

I rebooted, launched the sim, and it looked like my install was missing, and wanted me to reinstall. I didn’t do it, and the sim loaded into offline mode. Marketplace was inaccessible, and there was no server connection. When it finished loading I quit, restarted the computer, and launched the sim again. All was well… :grinning:

I thought maybe MS stores a temp file that affects connection to the servers (maybe it does) or maybe it was just a coincidence, and the servers just happened to be down at just the wrong time.

I feel like I dodged a bullet, and improved the performance of my system. Win/Win.

I know there’s debate about whether to use a Rolling Cache. I decided I wanted one, so no debate in this thread, if you don’t mind. :wink:

1 Like

Yes I found all this out when I first started using a ram disk, the rolling cache needs an address other than the root of a drive and the TEMP should not be renamed. The default behaviour is for Imdisk to recreate a clean TEMP at every restart and if enabled the default MSFS behaviour is to check a RC exists and if not it will build an 8gb one at the address saved in options. Of course there are ways to increase this and have persistant data but with just 32gb ram I find these default behaviours perfect. A clean rolling cache at system startup can save a lot of hassle if changes are made in the sim.

So you’re saying I need to script deleting the cache file (but not the folder) in the image file before I copy it back to the RAM disk cache folder when I login?

Doesn’t that defeat the purpose of the rolling cache, which is to store previous terrain data for reuse?
Why sync the RAM disk to an image file at all?

The problem I had with IMDisk is that I couldn’t figure out how to set it to create a cache folder on the RAM disk at startup. There’s a setting to create a new Temp folder, but not a new empty cache folder.

I can use mkdir to do that in my batch file.

I guess it depends what your purpose is. I fly gliders and use it to help with pop-ins while circling. And if I wanted it to stay I’d just use sleep instead of shutdown

Makes sense.