Closed (won't fix)
Project:
Salesforce Suite
Version:
7.x-3.x-dev
Component:
salesforce.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2015 at 21:29 UTC
Updated:
21 Feb 2026 at 19:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
aaronbaumanComment #3
mariacha1 commentedHey @aaronbauman -- it seems like this could cause a pretty big performance hit, particularly given that this cache reset is happening in a loop, and that every call with $reset=TRUE resets not just the current entity's cache, but the cache for all entities of that type.
How often does this situation really come up? If it's rare, could we make this a setting that could be enabled or disabled?
If it's a common problem, could we do a cache flush outside of the loop instead? Or only invalidate specific cache entries using something like
entity_get_controller($entity_type)->resetCache(array($entity_id));?Comment #4
aaronbaumanThis seems like a great idea.
In practice, I haven't noticed much hit to performance when running this patch.
I think because this happens only during cron, and cache is already getting cleared or has already been cleared.
Wouldn't hurt to be more targeted though.
Comment #5
aaronbauman7.x is no longer supported