Top Menu not refreshing

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 năm cách đây
Hi

If I change Category parameters programmatically for instance IncludeInTopMenu = 1 or 0 then Top Menu is not refresh automatically. I have to restart page on IIS and than I see effect.
How can I solve this? What should I do that page refresh automatically?

Karno
5 năm cách đây
You'll need to clear relevant cache keys. See Nop.Web\Factories\CatalogModelFactory.cs file and look for TopMenu action method to see the cache keys that'll need to be cleared.

Regards,
Anshul
5 năm cách đây
RoastedBytes wrote:
.. TopMenu action ..


Correction: PrepareTopMenuModel method
5 năm cách đây
Thank you for the answer. And I already ask myself why this cacheManager is for.
Is it possible that caches is automatically cleared after some period of time?
5 năm cách đây
bulb wrote:
Thank you for the answer. And I already ask myself why this cacheManager is for.
Is it possible that caches is automatically cleared after some period of time?


Yes, there is a scheduled task for that. Visit Admin > ScheduleTask > List to see that.

Regards,
Anshul
5 năm cách đây
Hi, the menu is not refreshed even though I ran the Task. What else could be the reason?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.