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.
While looking trough the code to figure out a way to fix #2051267: block does not get deleted if using custom machine name I found out that db_select is being called once for each nodeblock enabled content type. The code in nodeblock_block_info could be rewritten to only use one query.
I'm already working on a patch which I will add shortly
Comment | File | Size | Author |
---|---|---|---|
#1 | nodeblock-reduce-queries-in-block-info-2053931-1.patch | 1.79 KB | legolasbo |
Comments
Comment #1
legolasboAttached patch only uses one query to fetch all the required info from the db.
Comment #2
Johnny vd Laar CreditAttribution: Johnny vd Laar commentedAdded your change here:
https://drupal.org/node/129257/commits
thanks for the help!