diff --git a/titiler/cmr/backend.py b/titiler/cmr/backend.py index 04ae190..5c77c27 100644 --- a/titiler/cmr/backend.py +++ b/titiler/cmr/backend.py @@ -1,5 +1,6 @@ """TiTiler.cmr custom Mosaic Backend.""" +import json from typing import Any, Dict, List, Optional, Tuple, Type, TypedDict import attr @@ -146,7 +147,7 @@ def assets_for_bbox( @cached( # type: ignore TTLCache(maxsize=cache_config.maxsize, ttl=cache_config.ttl), key=lambda self, xmin, ymin, xmax, ymax, **kwargs: hashkey( - self.input, str(xmin), str(ymin), str(xmax), str(ymax), **kwargs + self.input, str(xmin), str(ymin), str(xmax), str(ymax), json.dumps(kwargs) ), ) @retry(