Skip to content

Commit

Permalink
#5645 fixed problem, on deleting cached by GUID instance of customer
Browse files Browse the repository at this point in the history
(cherry picked from commit a35f5f2)
  • Loading branch information
skoshelev committed Apr 26, 2021
1 parent bdee465 commit 5de7785
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -33,12 +33,12 @@ protected override async Task ClearCacheAsync(Customer entity)
await RemoveByPrefixAsync(NopCustomerServicesDefaults.CustomerCustomerRolesByCustomerPrefix, entity);
await RemoveByPrefixAsync(NopCustomerServicesDefaults.CustomerAddressesByCustomerPrefix, entity);
await RemoveByPrefixAsync(NopOrderDefaults.ShoppingCartItemsByCustomerPrefix, entity);
await RemoveAsync(NopCustomerServicesDefaults.CustomerByGuidCacheKey, entity.CustomerGuid);

if (string.IsNullOrEmpty(entity.SystemName))
return;

await RemoveAsync(NopCustomerServicesDefaults.CustomerBySystemNameCacheKey, entity.SystemName);
await RemoveAsync(NopCustomerServicesDefaults.CustomerByGuidCacheKey, entity.CustomerGuid);
}

#endregion
Expand Down

0 comments on commit 5de7785

Please sign in to comment.