While profiling a panel page I've came across the function ctools_entity_field_content_type_content_types.
It's triggered for each panel that's rendered and calls itself a nice amount of other functions e.g. t().
After taking a closer look I think there shouldn't be a disadvantage to add a static caching to the function.
| Comment | File | Size | Author |
|---|---|---|---|
| ctools-add-static-caching-to-ctools_entity_field_content_type_content_types.patch | 683 bytes | das-peter |
Comments
Comment #1
merlinofchaos commentedCommitted, though I did remove $types = array() since the drupal_static is setting it to array already.