fix cache
This commit is contained in:
parent
569665a5a2
commit
d1a688d7d7
1 changed files with 1 additions and 2 deletions
|
@ -68,9 +68,8 @@ impl Mirror {
|
||||||
let p = std::path::Path::new(&path[1..]);
|
let p = std::path::Path::new(&path[1..]);
|
||||||
let p = std::path::Path::new(&self.data_dir).join(p);
|
let p = std::path::Path::new(&self.data_dir).join(p);
|
||||||
|
|
||||||
if !self.no_cache.is_match(path) {
|
|
||||||
Self::create_cache_dir(p.parent().unwrap());
|
Self::create_cache_dir(p.parent().unwrap());
|
||||||
|
if !self.no_cache.is_match(path) {
|
||||||
if p.exists() {
|
if p.exists() {
|
||||||
// todo : refresh caches
|
// todo : refresh caches
|
||||||
log::info!("Returning {path} from cache");
|
log::info!("Returning {path} from cache");
|
||||||
|
|
Loading…
Add table
Reference in a new issue