Closed (works as designed)
Project:
Field Encryption
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2016 at 06:37 UTC
Updated:
20 Jul 2016 at 14:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerLet's see whether this causes any failure for itself
Comment #3
dawehnerLet's reupload for automated testing
Comment #4
nerdsteindawehner, I am cool with the patch, but the tests are failing. Can we connect on this to see why?
Comment #5
talhaparacha commentedI don't think there is any need for switching from hook_entity_storage_load() to hook_entity_load().
The latest 8.x-2.x-dev provides the feature of setting an entity type as "uncacheable" as can be seen in the field_encrypt_entity_type_alter() hook:
And ContentEntityStorageBase::setPersistentCache() method does effectively nothing on any entity type which has its persistent_cache set to FALSE as can be seen in it's source code:
This ensures that whenever a field to be encrypted is marked as "uncacheable" in the Field Encrypt settings, then the corresponding entity will never get cached not even after hook_entity_storage_load() invocations. Hence closing this issue for now.