diff --git a/dozer-api/src/cache_builder/mod.rs b/dozer-api/src/cache_builder/mod.rs index 5aacb886c8..e98077976f 100644 --- a/dozer-api/src/cache_builder/mod.rs +++ b/dozer-api/src/cache_builder/mod.rs @@ -232,8 +232,9 @@ fn create_cache( write_options: CacheWriteOptions, ) -> Result, CacheError> { let (alias, cache_labels) = endpoint_meta.cache_alias_and_labels(labels); + let cache_name = format!("{}_{}", endpoint_meta.log_id, alias); let cache = cache_manager.create_cache( - endpoint_meta.log_id.clone(), + cache_name.clone(), cache_labels, ( endpoint_meta.schema.schema, @@ -242,7 +243,7 @@ fn create_cache( &endpoint_meta.schema.connections, write_options, )?; - cache_manager.create_alias(&endpoint_meta.log_id, &alias)?; + cache_manager.create_alias(&cache_name, &alias)?; Ok(cache) }