fix(cache): enable cache for custom kernel documentation path

This commit is contained in:
Orhun Parmaksız 2022-03-18 23:19:10 +03:00
parent 7d25e92300
commit 17c1ea61f9
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -96,7 +96,7 @@ impl Sysctl {
}
}
if let Some(path) = kernel_docs_path.iter().find(|path| path.exists()) {
if cache.exists(PARAMETERS_CACHE_LABEL) && kernel_docs.is_none() {
if cache.exists(PARAMETERS_CACHE_LABEL) {
let cache_data = cache.read(PARAMETERS_CACHE_LABEL)?;
if cache_data.timestamp == CacheData::<()>::get_timestamp(path)? {
self.update_params(cache_data.data);