fix
This commit is contained in:
parent
2c900f711f
commit
c047a367cc
@ -8,8 +8,8 @@
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"GoogleAnalyticsCode": "",
|
||||
"APIRoot": "https://ganjgah.ir",
|
||||
"GlobalAPIRoot": "https://ganjgah.ir",
|
||||
"APIRoot": "http://localhost:3439",
|
||||
"GlobalAPIRoot": "http://localhost:3439",
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=museum;Trusted_Connection=True;MultipleActiveResultSets=true"
|
||||
},
|
||||
|
||||
@ -347,7 +347,7 @@ namespace RMuseum.Services.Implementation
|
||||
public void CacheCleanForPageByUrl(string url)
|
||||
{
|
||||
var cachKey = $"GanjoorService::GetPageByUrl::{url}";
|
||||
if (!_memoryCache.TryGetValue(cachKey, out GanjoorPageCompleteViewModel page))
|
||||
if (_memoryCache.TryGetValue(cachKey, out GanjoorPageCompleteViewModel page))
|
||||
{
|
||||
_memoryCache.Remove(cachKey);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user