Aditya Kasibhatla
Aditya Kasibhatla

Reputation: 19

Can I recover memory allocated to ccache (compiler cache)?

I have been building LineageOS and AOSP ROMs for over a year now.

A build for me takes about eight hours on my PC and I know using ccache can speed things up for me. But I have read on LineageOS's website and XDA that you cannot recover the space once it has been allocated.

I really don't want to lose 50 to 75 GB of disk space forever.

This might be silly, but just to be sure, is there really no way to recover that space? Even formatting?

Link to LineageOS website

Upvotes: 1

Views: 409

Answers (1)

Ken Y-N
Ken Y-N

Reputation: 15009

All you need is:

ccache -C

This will delete everything in the cache; I don't know why that page says the memory is gone forever, as ccache --help shows you the flags.

Upvotes: 1

Related Questions