K13: Cache items not showing up in debug

Rory Aherne asked on November 25, 2024 12:26

Hi, I'm on v13.0.154. I'm trying to debug my output cache but the cache items don't show up:

Image Text

The code used to generate the cache is here:

public async Task<IEnumerable<ListableDocumentRollupItemModel>> GetListableDocumentRollupItemsAsync(string path, IEnumerable<string> categories, IEnumerable<string> categoriesExclude, string classNames, int maxRelativeLevel, int topN, string orderBy, int page, int pageSize)
{

    var categoriesStr = "";
    if (categories != null)
        categoriesStr = string.Join(";", categories);
    path = path.TrimEndForPath();

    var builder = new CacheDependencyKeysBuilder(_siteRepository, _cacheDependenciesStore);
    builder.PagePath(path, PathTypeEnum.Children);

    var retriever = await _pageRetriever.RetrieveMultipleAsync(
        query => {
            query
            .PathForChildren(path)
            .Page(page, pageSize)
            .Types(classNames)
            .TopN(topN)
            .NestingLevel(maxRelativeLevel)
            .InCategories(categoriesStr)
            .Where(GetWhereCondition(categoriesExclude))
            .Columns(GetColumns(classNames))
            .OrderBy(GetOrderBy(orderBy, classNames));
        },
        cacheSettings => cacheSettings
            .Dependencies((items, csbuilder) => builder.ApplyDependenciesTo(dependencyItem => csbuilder.Custom(dependencyItem)))
            .Key($"{nameof(GetListableDocumentRollupItemsAsync)}|{path}|{classNames}|{categoriesStr}|{page}")
            .Expiration(TimeSpan.FromMinutes(Constants.CACHE_MINUTES))
        );


    return retriever.Select(x => _mapper.Map<ListableDocumentRollupItemModel>(x));
}

Recent Answers


Juraj Ondrus answered on November 25, 2024 12:48

I would recommend applying the latest hotfix. Then, make sure you are using valid, trusted SSL certificate and that you are using HTTPS protocol for the front end and admin URLs. Have you also checked these threads yet?

Viewing Cache Items for the LIVE Site
Viewing cache items in MVC site - Could not establish trust relationship for the SSL/TLS secure

0 votesVote for this answer Mark as a Correct answer

Rory Aherne answered on November 28, 2024 14:15

@Juraj I updated to the latest hotfix and the issue persists. On closer inspection, it only seems to exist for _pageRetriever.RetrieveMultipleAsync. I can see the objects when I call _pageRetriever.RetrieveAsync

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.