We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 251fe56 commit 468e58fCopy full SHA for 468e58f
eh2telegraph/src/sync.rs
@@ -92,7 +92,9 @@ where
92
<C::ImageStream as AsyncStream>::Future: Send + 'static,
93
{
94
// check cache
95
- let cache_key = format!("{}|{}", C::name(), path);
+ let path = path.trim_end_matches('/').to_string();
96
+ let original_cache_key = format!("{}|{}", C::name(), path);
97
+ let cache_key = original_cache_key.replace("exhentai", "e-hentai");
98
if let Ok(Some(v)) = self.cache.get(&cache_key).await {
99
tracing::info!("[cache] hit key {cache_key}");
100
return Ok(v);
0 commit comments