Skip to content

Commit fb93c02

Browse files
committed
Refactoring. Removed extra underscore
1 parent 0ed234b commit fb93c02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Presentation/Nop.Web/Factories/PollModelFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public virtual PollModel PreparePollModelBySystemName(string systemKeyword)
6868
if (String.IsNullOrWhiteSpace(systemKeyword))
6969
return null;
7070

71-
var cacheKey = string.Format(ModelCacheEventConsumer.POLL_BY_SYSTEMNAME__MODEL_KEY, systemKeyword, _workContext.WorkingLanguage.Id);
71+
var cacheKey = string.Format(ModelCacheEventConsumer.POLL_BY_SYSTEMNAME_MODEL_KEY, systemKeyword, _workContext.WorkingLanguage.Id);
7272
var cachedModel = _cacheManager.Get(cacheKey, () =>
7373
{
7474
Poll poll = _pollService.GetPolls(languageId: _workContext.WorkingLanguage.Id, systemKeyword: systemKeyword).FirstOrDefault();

src/Presentation/Nop.Web/Infrastructure/Cache/ModelCacheEventConsumer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public ModelCacheEventConsumer(CatalogSettings catalogSettings)
628628
/// {0} : poll system name
629629
/// {1} : language ID
630630
/// </remarks>
631-
public const string POLL_BY_SYSTEMNAME__MODEL_KEY = "Nop.pres.poll.systemname-{0}-{1}";
631+
public const string POLL_BY_SYSTEMNAME_MODEL_KEY = "Nop.pres.poll.systemname-{0}-{1}";
632632
public const string POLLS_PATTERN_KEY = "Nop.pres.poll";
633633

634634
/// <summary>

0 commit comments

Comments
 (0)