This is an issue thread for the D7 version of same change found on http://drupal.org/node/1259812
In the homebox_build function there is a call to
$info[$block['module']] = module_invoke($block['module'], 'block', 'list');If this page is being called frequently there is a significant overhead in collecting this information.
Especially if you have a lot of views.If we cache this $info array it improves the performance.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | homebox_build_module_invoke-1373084-1.patch | 1.06 KB | Matt-H |
Comments
Comment #1
Matt-H commentedThis patch caches the block information required by a particular homebox page.
If you make changes to any blocks / views blocks you should clear cache to make sure
that the changes are reflected on homebox pages.
Comment #2
rv0 commentedFor some reason this code slowed down my page execution time from around ±1000ms to ±2000ms on avarage
Comment #3
anybodyPlease create a new Drupal 8+ (3.0.x) issue, referencing this one, if this is still relevant for Drupal 8+ (3.0.x).
As this issue was created for Drupal 7 which is close to EOL and won't receive any new features here anymore (unless someone implements them or sponsors development) I'm closing this issue for cleanup now.
If anyone works on this or has a solution, feel free to reopen! :)
Thank you.