Skip to content

Commit

Permalink
fix: retrieve jsonld from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed May 31, 2024
1 parent 21b20d2 commit 2de25de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/Infrastructure/Controllers/ApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected async Task<BackendResponse> GetFromCacheThenFromBackendAsync(
{
_logger.LogInformation("Failed to retrieve record {Record} from Redis, trying to retrieve JSON-LD instead.", key);

key = $"{cacheKey}.{acceptType}".ToLowerInvariant();
key = $"{cacheKey}.jsonld".ToLowerInvariant();
cachedResponse = await GetFromCacheAsync(key, AcceptType.JsonLd);

if (cachedResponse is not null)
Expand Down

0 comments on commit 2de25de

Please sign in to comment.