The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

Top Menu not refreshing

Posted: September 19, 2018 at 5:25 AM Quote #212122
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
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 19, 2018 at 6:22 AM Quote #212125
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
This post/answer is useful
2
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
nopCommerce enthusiasts since 3.10
nopCommerce themes & plugins available @ https://www.roastedbytes.com
Posted: September 19, 2018 at 6:47 AM Quote #212135
RoastedBytes wrote:
.. TopMenu action ..


Correction: PrepareTopMenuModel method
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
nopCommerce enthusiasts since 3.10
nopCommerce themes & plugins available @ https://www.roastedbytes.com
Posted: September 19, 2018 at 8:06 AM Quote #212142
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?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 19, 2018 at 9:35 AM Quote #212145
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
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
nopCommerce enthusiasts since 3.10
nopCommerce themes & plugins available @ https://www.roastedbytes.com
Posted: January 07, 2019 at 9:13 PM Quote #217760
Hi, the menu is not refreshed even though I ran the Task. What else could be the reason?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.