diff --git a/frontools/cache.py b/frontools/cache.py index bec534d..befd90c 100644 --- a/frontools/cache.py +++ b/frontools/cache.py @@ -100,7 +100,7 @@ class FileCache(Cache[ResourceType]): key_slug = _get_key_slug(key) cache_directory = self.cache_base / self._name file_path = cache_directory.joinpath(*key_slug.split("&")) - file_path = file_path.parent / (file_path.name + '_') + file_path = file_path.parent / (file_path.name[:255] + '_') file_directory = file_path.parent if not file_directory.is_dir():