]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feat: Don't remove inode cache file on -C/--clear
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 19 Jul 2022 13:31:34 +0000 (15:31 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 20 Jul 2022 20:55:53 +0000 (22:55 +0200)
-C/--clear is tied to the cache directory while the inode cache file is
a temporary file. I think it makes more sense to not consider the inode
cache part of the main cache directory.

src/core/mainoptions.cpp

index 6c1fc0a156d4f2ce01bf0cdf61a027db40b2cbf0..83ad50803e39ff637dd72a018a30b728523162ce 100644 (file)
@@ -493,9 +493,6 @@ process_main_options(int argc, const char* const* argv)
       if (isatty(STDOUT_FILENO)) {
         PRINT_RAW(stdout, "\n");
       }
-#ifdef INODE_CACHE_SUPPORTED
-      InodeCache(config).drop();
-#endif
       break;
     }