Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
rules_link_menu_rebuild_performance.patch | 2.06 KB | fago | |
Comments
Comment #1
sepgil CreditAttribution: sepgil commentedI couldn't find any problems and therefore committed the patch. thx!