Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Remove unused cache key
support2320e496c059
diff --git a/src/Web/Grand.Web/Events/Cache/CacheKeyConst.cs b/src/Web/Grand.Web/Events/Cache/CacheKeyConst.csindex 0595b0ba4..6f01486dc 100644--- a/src/Web/Grand.Web/Events/Cache/CacheKeyConst.cs+++ b/src/Web/Grand.Web/Events/Cache/CacheKeyConst.cs@@ -79,16 +79,6 @@ namespace Grand.Web.Events.Cache/// </remarks>public const string COLLECTION_HAS_FEATURED_PRODUCTS_KEY = "Grand.productcollection.hasfeaturedproducts-{0}-{1}-{2}";- /// <summary>- /// Key for List of CollectionModel caching- /// </summary>- /// <remarks>- /// {0} : language id- /// {1} : comma separated list of customer groups- /// {2} : current store ID- /// </remarks>- public const string COLLECTION_ALL_MODEL_KEY = "Grand.collection.navigation.all-{0}-{1}-{2}.pres";-/// <summary>/// Key for VendorNavigationModel caching/// </summary>diff --git a/src/Web/Grand.Web/Features/Handlers/Catalog/GetCollectionAllHandler.cs b/src/Web/Grand.Web/Features/Handlers/Catalog/GetCollectionAllHandler.csindex 48ab534a9..f495d4a0b 100644--- a/src/Web/Grand.Web/Features/Handlers/Catalog/GetCollectionAllHandler.cs+++ b/src/Web/Grand.Web/Features/Handlers/Catalog/GetCollectionAllHandler.cs@@ -38,11 +38,6 @@ namespace Grand.Web.Features.Handlers.Catalogpublic async Task<CollectionListModel> Handle(GetCollectionAll request, CancellationToken cancellationToken){- var cacheKey = string.Format(CacheKeyConst.COLLECTION_ALL_MODEL_KEY,- request.Language.Id,- string.Join(",", request.Customer.GetCustomerGroupIds()),- request.Store.Id);-var model = new CollectionListModel();model.CollectionModel = await PrepareCollectionAll(request, model);return model;