Found the following regression while examining queries with Devel module: With the introduction of dynamic (uncached) menu entries in Admin Menu 2.x, the whole menu tree is built on every page request. This had been solved in 1.x by caching the final rendered output, but is now causing performance degradation again.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | admin_menu.patch | 6.21 KB | smk-ka |
Comments
Comment #1
smk-ka commentedThe problem is the l()/url() functions, which look up aliases for every link. I think we had code in 1.x that avoided these lookups.
Comment #2
smk-ka commentedThe attached patch avoids calling url() on output by storing the processed urls in the cache. This accelerates the output of the admin menu by 30% and saves us a few hundred queries.
Comment #3
sunThanks, committed!
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.