Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic cache file cleanup for efficient disk space management #7500

Open
randilt opened this issue Jan 15, 2025 · 1 comment
Open

Automatic cache file cleanup for efficient disk space management #7500

randilt opened this issue Jan 15, 2025 · 1 comment

Comments

@randilt
Copy link

randilt commented Jan 15, 2025

Current Limitation

Currently, Ballerina creates temporary cache files during compilation and does not automatically delete previous cache files that are no longer in use. Over time, these files accumulate in the Temp folder, potentially taking up a significant amount of disk space. Users may not always be aware of this accumulation.

Image

Suggested Improvement

It would be beneficial to implement a dedicated command to remove unused cache files or have Ballerina automatically delete cache files that are no longer being used during the compilation process. For example, a command like:

bal clean-cache

could be introduced to allow users to easily clean up unused cache files. Alternatively, Ballerina could automatically delete cache files that are not being used anymore when a new compilation starts. This will help keep the Temp folder lean and prevent it from accumulating unnecessary data.

Version

2201.10.3 (Swan Lake Update 10)

@xlight05
Copy link

@azinneera

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants