Performance guide
Build and deployment
Caching
var key = CacheKey.With("homepage:featured-products");
var products = await _cache.GetAsync(key, () => LoadFeaturedProductsAsync());Output caching
internal sealed class CacheableRoutes : ICacheableRouteProvider
{
public int Order => 0;
public IEnumerable<string> GetCacheableRoutes()
{
return new[]
{
"Catalog/Category", // full page
"vc:SearchBox" // view component
};
}
}Database access
Static assets
Profiling and diagnostics
General tips
Last updated
Was this helpful?