Log1x / navi

A developer-friendly alternative to the WordPress NavWalker.
https://github.com/Log1x/navi
MIT License
311 stars 29 forks source link

Serious performance issues – just using `build()`, no actual output... #57

Closed E-VANCE closed 1 year ago

Log1x commented 1 year ago

Care to elaborate? I've built a few pretty large mega menu's with Navi and have never had any sort of performance issue.

E-VANCE commented 1 year ago

Sorry, posted by accident while I was still debugging (hit enter without having added the description) and I found the root issue in the meantime – was calling (new Navi())->build('primary_navigation') as a non-static function which resulted in massive overhead / redundancy.

Many thanks for providing this brilliant helper which makes working with the WordPress menus so much cleaner and accessible!

Log1x commented 1 year ago

No problem. Glad you got it sorted. 😄