Skip to content

Instantly share code, notes, and snippets.

@trnktms
Created September 21, 2023 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trnktms/12a61bbbbc7b77f1a5f0be693805f93e to your computer and use it in GitHub Desktop.
Save trnktms/12a61bbbbc7b77f1a5f0be693805f93e to your computer and use it in GitHub Desktop.
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
...
// Overwrite the default ApiPublishedContentCache to support wildcard item resolving
services.AddSingleton<ApiPublishedContentCache>();
services.AddSingleton<IApiPublishedContentCache, WildcardApiPublishedContentCache>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment