Description of the need
The function menu_navigation_links_rebuild() uses a large number of database queries when rebuilding the system menu links that are created based on hook_menu. This process uses nearly 300 database queries without any contributed modules, and gets more expensive the more modules you have.
Proposed solution
These queries can be statically cached during the process and then all written back to the database at the end. Based on my initial testing, this reduces test execution time by 10-15%
Additional information
I had to modify one test that deletes menu items without using menu_link_delete to simulate a database crash. The behavior in this case is changed because the links are stored using a static cache.
PR: https://github.com/backdrop/backdrop/pull/3659
Advocate: @hosef
Recent comments
Hi Jim..., I did something similar for a new site ive created parallax-news.com where the poster can add an image and a blue background with text shadows to make text more readable...
How to access node fields in block template files
Thanks people. I went ahead and created a View block using the BG image formatter. I might still end up messing with template files because I’ll probably need to overlay a graduated...
How to access node fields in block template files
Hi Coffee70, How can I determine what is causing this warning and what exactly needs to be done to resolve it, other than uninstalling Honeypot completely? It doesn't...
Warnings after installing Simplenews 1.x-1.2.3