diff options
Diffstat (limited to 'src/cache/font.rs')
-rw-r--r-- | src/cache/font.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cache/font.rs b/src/cache/font.rs index 5be2196..a238a87 100644 --- a/src/cache/font.rs +++ b/src/cache/font.rs @@ -57,3 +57,7 @@ static FONT_CACHE: LazyLock<FontCache> = LazyLock::new(|| { pub async fn get_fontinfo(font: &String) -> Result<Arc<str>, (StatusCode, &'static str)> { FONT_CACHE.write().await.get_owned(font).await } + +pub fn touch() { + LazyLock::force(&FONT_CACHE); +} |