Skip to content

Commit

Permalink
Merge pull request #2509 from Christopher-Tihor/master
Browse files Browse the repository at this point in the history
EMBCESSMOD-5665 Responder Portal - Jurisdiction not visible in portal
  • Loading branch information
GeorgeWalker authored Nov 5, 2024
2 parents e22fdee + 8070b92 commit d69c5c1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class MetadataRepository : IMetadataRepository
internal const string PlannedOutagesCacheKey = "metadata:plannedoutages";

internal static readonly TimeSpan CacheEntryLifetime = TimeSpan.FromDays(1);
internal static readonly TimeSpan CommunitiesCacheEntryLifetime = TimeSpan.FromHours(1);

private readonly InternalMetadataRepository internalRepository;
private readonly ICache cache;
Expand All @@ -39,7 +40,7 @@ public async Task<IEnumerable<StateProvince>> GetStateProvinces()

public async Task<IEnumerable<Community>> GetCommunities()
{
return await cache.GetOrSet(CommunitiesCacheKey, internalRepository.GetCommunities, CacheEntryLifetime);
return await cache.GetOrSet(CommunitiesCacheKey, internalRepository.GetCommunities, CommunitiesCacheEntryLifetime);
}

public async Task<string[]> GetSecurityQuestions()
Expand Down

0 comments on commit d69c5c1

Please sign in to comment.