fix: prevent overcaching

This commit is contained in:
Hamid Reza Mohammadi 2021-05-15 20:11:44 +04:30
parent c047a367cc
commit 00b6f6166c

View File

@ -496,7 +496,10 @@ namespace RMuseum.Services.Implementation
}
break;
}
_memoryCache.Set(cachKey, page);
if(page.FullUrl != "/hashieha" && page.FullUrl != "/vazn" && page.FullUrl != "/simi" && page.FullUrl != "/audioclip")
{
_memoryCache.Set(cachKey, page);
}
}
return new RServiceResult<GanjoorPageCompleteViewModel>(page);