Bug 8346 - [Suggestion] Option to remove certain parts of cache when compiling
[Suggestion] Option to remove certain parts of cache when compiling
Status: CLOSED INVALID
Product: ccache
Classification: Unclassified
Component: ccache
3.1.5
All All
: P5 enhancement
: ---
Assigned To: Joel Rosdahl
Joel Rosdahl
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-03 18:28 UTC by David Carlos Manuelda
Modified: 2011-09-25 17:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2011-08-03 18:28:36 UTC
I have an idea: If ccache is about storing a "compilation cache" how about having an option that, during compile will regenerate cache for that compilation (in case it was found)?

This can be usefull if in some moment cache got poisoned but you don't want to delete the entire cache just to be sure.

An example of this could be a power failure with some data loss (it happened to me).

It is not much important, but I wanted to propose it.
Comment 1 Joel Rosdahl 2011-08-03 18:35:50 UTC
If I understand you correctly, then there's such an option already. It's called CCACHE_RECACHE. From the ccache manual: "This forces ccache to not use any cached results, even if it finds them. New results are still cached, but existing cache entries are ignored."
Comment 2 Joel Rosdahl 2011-09-05 17:03:56 UTC
(In reply to comment #1)
> If I understand you correctly, then there's such an option already. It's called
> CCACHE_RECACHE. From the ccache manual: "This forces ccache to not use any
> cached results, even if it finds them. New results are still cached, but
> existing cache entries are ignored."

David, is this similar to your idea? Should I close the feature request?
Comment 3 David Carlos Manuelda 2011-09-07 11:58:57 UTC
Oh, I didn't know it already existed, I'll close it as invalid then, thanks :)