Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include nav menu caching #1

Open
emrikol opened this issue Jul 12, 2016 · 2 comments
Open

Include nav menu caching #1

emrikol opened this issue Jul 12, 2016 · 2 comments

Comments

@emrikol
Copy link

emrikol commented Jul 12, 2016

With a large menu structure (and maybe a custom walker or two) nav menus can take quite a long time to generate, and they will be regenerated on every page.

VIP has a menu caching plugin for WordPress.com that can probably be easily made compatible with WordPress.org installs

@sboisvert
Copy link
Contributor

I think we should add this and also add parts of the sidebar / footer / header caching plugin that I saw once and can't find again.... odds are we can recreate most of it pretty quickly. #famouslastwords

@emrikol
Copy link
Author

emrikol commented Jul 12, 2016

Would it be better to just cache wp_nav_menu and not use a helper function?

I think we can use the pre_wp_nav_menu and wp_nav_menu filters to provide caching to the core function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants