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.
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."
(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?
Oh, I didn't know it already existed, I'll close it as invalid then, thanks :)