Skip to content

Removes IDisplayedContentItemHandler in favour of ICacheTagProvider (#7792)#7793

Merged
sebastienros merged 2 commits intoOrchardCMS:devfrom
paynecrl97:cache_tag_providers
Aug 3, 2017
Merged

Removes IDisplayedContentItemHandler in favour of ICacheTagProvider (#7792)#7793
sebastienros merged 2 commits intoOrchardCMS:devfrom
paynecrl97:cache_tag_providers

Conversation

@paynecrl97
Copy link
Copy Markdown
Member

@paynecrl97 paynecrl97 commented Jul 27, 2017

See #7792 for more info.

cacheItemTags.AddRange(cacheTagProvider.GetTags());
}
catch (Exception ex) {
Logger.Warning(ex, "Cache tags from provider {0} will not be added to the cached item ({1}) because the provider threw an exception when asked to provide tags.", cacheTagProvider.GetType().FullName, _cacheKey);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An individual provider failing should not prevent the request from succeeding. Log warn and continue.

private readonly ITagCache _tagCache;
private readonly IDisplayedContentItemHandler _displayedContentItemHandler;
private readonly IWorkContextAccessor _workContextAccessor;
private readonly IThemeManager _themeManager;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ITagCache and IThemeManager were already unused before this change, I just removed them to help tidy up.

@DaRosenberg
Copy link
Copy Markdown
Member

Talked to Chris at length about this and reviewed these changes with him. GTG as far as I'm concerned.

@sebastienros sebastienros merged commit 7373c11 into OrchardCMS:dev Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants