Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions LearningHub.Nhs.WebUI/Views/Search/_SearchResult.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
var pagingModel = Model.ResourceResultPaging;
var index = pagingModel.CurrentPage * pagingModel.PageSize;
var searchString = HttpUtility.UrlEncode(Model.SearchString);
string groupId = HttpUtility.UrlEncode(Model.GroupId.ToString());
string[] formats = { "dd/MM/yyyy HH:mm:ss", "dd/MM/yyyy", "yyyy-MM-dd HH:mm:ss",
"yyyy-MM-dd","dd MMM yyyy HH:mm:ss","dd MMM yyyy" };
string groupId = HttpUtility.UrlEncode(Model.GroupId.ToString());

string GetUrl(int resourceReferenceId, int itemIndex, int nodePathId, SearchClickPayloadModel payload)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ private async Task<IDictionary<string, IList<FacetResult>>> GetUnfilteredFacetsA

var cacheResponse = await this.cachingService.GetAsync<IDictionary<string, IList<CacheableFacetResult>>>(cacheKey);

if (cacheResponse.ResponseEnum == CacheReadResponseEnum.Found)
if (cacheResponse.ResponseEnum == CacheReadResponseEnum.Found && string.IsNullOrEmpty(accessLevelKey))
{
// Convert cached DTO back to FacetResult dictionary
return AzureSearchFacetHelper.ConvertFromCacheable(cacheResponse.Item);
Expand Down
Loading