Coming from #1399618: Rebuilding lots of exportable entities takes a long time

Attached patch improves menu-rebuilding to use the variable instead of doing directly. That way we prevent the menu to be rebuilt multiple times when rules-links are imported into the database during clearing caches.

Also, patch makes so to only rebuild the menu if necessary as it is a costly operation. Patch works for me, but it needs probably some more testing.

CommentFileSizeAuthor
rules_link_menu_rebuild_performance.patch2.06 KBfago
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sepgil’s picture

Status: Active » Fixed

I couldn't find any problems and therefore committed the patch. thx!

Automatically closed -- issue fixed for 2 weeks with no activity.