public void RemoveByTag(string tag) { foreach (var key in _tagCache.GetTaggedItems(tag)) { _cacheStorageProvider.Remove(key); } // we no longer need the tag entry as the items have been removed _tagCache.RemoveTag(tag); }
public override void Published(PublishContentContext context) { _tagCache.RemoveTag($"contentitemid:{context.ContentItem.ContentItemId}"); }
private void RemoveTag(AutoroutePart part) { _tagCache.RemoveTag($"alias:{part.Path}"); }
public ActionResult Tag(string tag) { _tagCache.RemoveTag(tag); return(RedirectToAction("Tag", "Home", new { area = "Orchard.Demo" })); }
public override void Published(PublishContentContext context, AliasPart instance) { _tagCache.RemoveTag($"alias:{instance.Alias}"); }
public override Task PublishedAsync(PublishContentContext context, AliasPart instance) { _tagCache.RemoveTag($"alias:{instance.Alias}"); return(Task.CompletedTask); }
public override Task PublishedAsync(PublishContentContext context) { _tagCache.RemoveTag($"contentitemid:{context.ContentItem.ContentItemId}"); return(Task.CompletedTask); }