Closed (fixed)
Project:
Relation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2012 at 04:45 UTC
Updated:
19 Jan 2012 at 15:01 UTC
Currently if you call this function with the same arguments during the same request (quite likely if relation is being used a lot), then it will issue duplicate queries. Patch adds a static cache for this. I wanted to avoid keeping the fully loaded entities in $drupal_static, so instead this caches $entities (which is actually field_values rather than entities but I didn't rename that in this patch).
Had some trouble getting relation tests to run locally, so hoping the test bot will catch this one.
| Comment | File | Size | Author |
|---|---|---|---|
| relation.patch | 3.09 KB | catch |
Comments
Comment #1
chx commented