Download & Extend

Provide caching in homebox_build to improve page load time.

Project:Homebox
Version:6.x-3.0-beta2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

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.

Comments

#1

This is the patch that I am using.

AttachmentSize
homebox-build-module-invoke-1259812-1.patch 1.09 KB

#2

Status:patch (to be ported)» needs review

moving to 'needs review'

#3

Status:needs review» reviewed & tested by the community

Is working, but (at least for me) not much speed improvement

#4

A D7 version of this patch can be found at http://drupal.org/node/1373084

nobody click here