mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Brought back support for compression in Azure database caching.
This commit is contained in:
committed by
Sebastien Ros
parent
1edff1f34c
commit
4f47c6a967
@@ -51,7 +51,7 @@ namespace Orchard.Azure.Services.Caching {
|
||||
|
||||
public bool CompressionIsEnabled {
|
||||
get;
|
||||
protected set;
|
||||
set;
|
||||
}
|
||||
|
||||
public bool AutodiscoverIsEnabled {
|
||||
@@ -77,7 +77,8 @@ namespace Orchard.Azure.Services.Caching {
|
||||
dataCacheFactoryConfiguration.AutoDiscoverProperty = new DataCacheAutoDiscoverProperty(true, HostIdentifier);
|
||||
}
|
||||
else {
|
||||
dataCacheFactoryConfiguration.Servers = new[] {new DataCacheServerEndpoint(Hostname, Port)};
|
||||
dataCacheFactoryConfiguration.AutoDiscoverProperty = new DataCacheAutoDiscoverProperty(false);
|
||||
dataCacheFactoryConfiguration.Servers = new[] { new DataCacheServerEndpoint(Hostname, Port) };
|
||||
dataCacheFactoryConfiguration.SecurityProperties = new DataCacheSecurity(AuthorizationToken);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user