From d0f64ac07197e946ffd731bb6f454197d086c67b Mon Sep 17 00:00:00 2001 From: Oscar Levin Date: Tue, 21 Jan 2025 18:50:47 -0700 Subject: [PATCH] separate cache into folders by asset type --- pretext/project/generate.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pretext/project/generate.py b/pretext/project/generate.py index 40b82f1c..2c8119ba 100644 --- a/pretext/project/generate.py +++ b/pretext/project/generate.py @@ -135,8 +135,6 @@ def cache_asset_filename( hash = hashlib.md5() # hash the asset file hash.update(asset_content) - # include the asset_type in hash - hash.update(asset_type.encode()) asset_hash = hash.hexdigest() # create the cache file name - return cache_dir / f"{asset_hash}.{extension}" + return cache_dir / asset_type / f"{asset_hash}.{extension}"