Closed (duplicate)
Project:
Entity cache
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2013 at 13:49 UTC
Updated:
25 Oct 2014 at 12:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
berdirAnd here's the patch.
Comment #2
dave reidIt seems we're missing some conditions that should be checked as well? Should we do a cache set if $conditions was used? Should we be looking at the $passed_ids variable instead because $ids is modified in line 83?
Comment #3
deviantintegral commentedHere's an update that checks
empty($ids)instead. Otherwise, if previous loads caused some entities to be cached in the static cache, the above patch was still causing the set to run. I think we want to check $ids, because if it's populated that indicates that we had to hit the database.As for $conditions, I think it's covered for us in the if before building the query.
Comment #4
josh waihi commentedIs this related to https://drupal.org/comment/7421230#comment-7421230?
Comment #5
skwashd commentedThis is a duplicate of #1670848. I've just committed a patch from that issue.