Browse Source
Merge pull request #6728 from abpframework/pr-6727
Exclude UserCache of ProxyScriptingModel as the cache key.
pull/6788/head
Halil İbrahim Kalkan
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
2 deletions
-
framework/src/Volo.Abp.Http/Volo/Abp/Http/ProxyScripting/ProxyScriptManager.cs
|
|
|
@ -20,7 +20,7 @@ namespace Volo.Abp.Http.ProxyScripting |
|
|
|
private readonly AbpApiProxyScriptingOptions _options; |
|
|
|
|
|
|
|
public ProxyScriptManager( |
|
|
|
IApiDescriptionModelProvider modelProvider, |
|
|
|
IApiDescriptionModelProvider modelProvider, |
|
|
|
IServiceProvider serviceProvider, |
|
|
|
IJsonSerializer jsonSerializer, |
|
|
|
IProxyScriptManagerCache cache, |
|
|
|
@ -70,7 +70,14 @@ namespace Volo.Abp.Http.ProxyScripting |
|
|
|
|
|
|
|
private string CreateCacheKey(ProxyScriptingModel model) |
|
|
|
{ |
|
|
|
return _jsonSerializer.Serialize(model).ToMd5(); |
|
|
|
return _jsonSerializer.Serialize(new |
|
|
|
{ |
|
|
|
model.GeneratorType, |
|
|
|
model.Modules, |
|
|
|
model.Controllers, |
|
|
|
model.Actions, |
|
|
|
model.Properties |
|
|
|
}).ToMd5(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|