Skip to content

Commit 8850680

Browse files
authored
Merge pull request #39 from Keyfactor/prodtypecache
removing caching of product type list
2 parents 19fae71 + fe7e05d commit 8850680

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

digicert-certcentral-caplugin/Models/CertCentralCertType.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public class CertCentralCertType
1616
#region Private Fields
1717

1818
private static readonly ILogger Logger = LogHandler.GetClassLogger<CertCentralCertType>();
19-
private static List<CertCentralCertType> _allTypes;
2019

2120
#endregion Private Fields
2221

@@ -62,12 +61,7 @@ public class CertCentralCertType
6261
/// <returns></returns>
6362
public static List<CertCentralCertType> GetAllTypes(CertCentralConfig config)
6463
{
65-
if (_allTypes == null || !_allTypes.Any())
66-
{
67-
_allTypes = RetrieveCertCentralCertTypes(config);
68-
}
69-
70-
return _allTypes;
64+
return RetrieveCertCentralCertTypes(config);
7165
}
7266

7367
/// <summary>

0 commit comments

Comments
 (0)