use the optimized

This commit is contained in:
Renjaya Raga Zenta 2025-07-31 00:39:03 +07:00
parent 72c644a37e
commit 95b62ffe58

View file

@ -40,7 +40,7 @@ app.MapPost("/api/image/generate", (Stitch request, IMemoryCache cache) =>
List<Image> images = []; List<Image> images = [];
try try
{ {
bool created = Tile.TryCreate(in request, tilesDirectory, images, logger, cache, out image, bool created = Tile.TryCreateFast(in request, tilesDirectory, images, logger, cache, out image,
out string? cacheKey, out string? cacheFile); out string? cacheKey, out string? cacheFile);
if( !created && cacheFile != null ) if( !created && cacheFile != null )
{ {