diff --git a/CHANGELOG.md b/CHANGELOG.md index d0e9e6f..94824f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed some issues with old dependencies. +- Fixed a bug causing cache misses. ## [v0.6.1](https://github.com/epwalsh/rust-cached-path/releases/tag/v0.6.1) - 2023-02-24 diff --git a/src/cache.rs b/src/cache.rs index 85a5c62..13a74d4 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -436,7 +436,7 @@ impl Cache { fn find_existing(&self, resource: &str, subdir: Option<&str>) -> Vec { let mut existing_meta: Vec = vec![]; let glob_string = format!( - "{}.*.meta", + "{}*.meta", self.resource_to_filepath(resource, &None, subdir, None) .to_str() .unwrap(),