Hi,

In function _weight_get_types(), could we safetly use static cache?
Would saved a lot of useless queries, depending on how many time hook_node_load is invoke for e.g !
Here is a patch.

CommentFileSizeAuthor
#1 weight-2408661-1.patch658 byteschaby
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chaby’s picture

Status: Active » Needs review
FileSize
658 bytes
davisben’s picture

Status: Needs review » Fixed

Thanks for the patch! This has been committed.

  • davisben committed e1ced2d on 7.x-2.x authored by chaby
    Issue #2408661 by chaby: performance issue - load entities types...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.