Closed (fixed)
Project:
Nodeblock
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
30 Jul 2013 at 17:53 UTC
Updated:
19 Sep 2013 at 11:21 UTC
Jump to comment: Most recent file
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 commentedAdded your change here:
https://drupal.org/node/129257/commits
thanks for the help!