mirror of
https://github.com/orhun/systeroid
synced 2024-07-21 10:25:00 +00:00
fix(cache): enable cache for custom kernel documentation path
This commit is contained in:
parent
7d25e92300
commit
17c1ea61f9
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue