Caching RecycleBinSmells

This commit is contained in:
Elitsa Marinovska
2021-03-25 11:49:38 +01:00
parent bfc3068d6a
commit d2a26bf4da
6 changed files with 31 additions and 2 deletions

View File

@@ -46,6 +46,7 @@ namespace Umbraco.Web.Cache
public override void Refresh(JsonPayload[] payloads)
{
AppCaches.RuntimeCache.ClearOfType<PublicAccessEntry>();
AppCaches.RuntimeCache.ClearByKey(CacheKeys.ContentRecycleBinCacheKey);
var idsRemoved = new HashSet<int>();
var isolatedCache = AppCaches.IsolatedCaches.GetOrCreate<IContent>();

View File

@@ -48,6 +48,7 @@ namespace Umbraco.Web.Cache
if (anythingChanged)
{
Current.AppCaches.ClearPartialViewCache();
AppCaches.RuntimeCache.ClearByKey(CacheKeys.MediaRecycleBinCacheKey);
var mediaCache = AppCaches.IsolatedCaches.Get<IMedia>();