Page 1 of 1

[SOLVED] Move cache directory

Published: April 23, 2025 - 2:44 PM
by flipflip
Hello everyone,

I've been using Wapt for several months now and it's still just as convenient!

This morning, while trying to update packages from my console, I realized my C: drive was full (Wapt and the console are installed there). I did some digging and found the folder C:\Program Files (x86)\wapt\cache, which contains a 690MB Acrobat package. I assume this folder is used by the console while it retrieves the package, signs it, and pushes it to the server. So, why an old package remains isn't a big deal, but to avoid filling up my C: drive, I'm looking for a way to move this folder to another drive (something I've already done for the waptdev folder). But there aren't really any built-in options for this. I could work around it by creating a shortcut.

Is there a plan to allow moving this folder in future versions? (I'm still on version 2.5.5)

Thanks in advance.
Philippe.

Re: Moving cache directory

Published: April 23, 2025 - 3:05 PM
by guigeek
Hi,
I just know that in version 2.6 the cache is moved to the private directory.
But I don't know if it's possible to move it elsewhere.
Have a good day.

Re: Moving cache directory

Published: April 23, 2025 - 3:18 PM
by dcardon
Hi Philippe,

as Guillaume said, the cache folder is moved to the private directory in 2.6, but this is the service directory, not the console directory. Normally, packages in the service cache should be deleted once the package is installed on the machine. So either there was a problem during installation, and the WAPT agent is keeping it to try the installation again later, or it's a cache management bug.

We fixed some cases where this could happen in 2.6; you should check if you're still seeing the problem in the latest version.

Regarding moving the directory, there should be the `wapt-get.ini packages_cache_dir` parameter (or `package_cache_dir` in 2.5, if I'm not mistaken), but this is more for testing and debugging than for production, so I don't recommend using it.

Regards,

Denis.

PS: How big is your C: drive to be full with 600MB? :roll:

Re: Moving cache directory

Published: April 23, 2025 - 4:11 PM
by flipflip
Thank you for your answers.
PS: How big is the C: drive to be full with 600MB? :roll:
No, there were other culprits involved. The hidden directory was in the wrong place at the wrong time ;)

I'm going to try to plan a switch to 2.6 quickly.

THANKS.