Problem/Motivation
Follow-up to #1268620: Use Entity Cache in Field Collection
The current solution doesn't update hook_schema(). The way that og and fieldable_panels_panes works around this is by adding something to their hook_schema to list support for entitycache. Let's do the same here. This is particularly a problem for me where I'm trying to build a filtered db dump of the site using the data from drupal_get_complete_schema(), which isn't providing accurate details since cache_entity_field_collection_item isn't returned.
Proposed resolution
Follow the approach used by og & fpp.
Remaining tasks
Review time!
User interface changes
n/a
API changes
n/a
Data model changes
yes, adds some things to hook_schema that were already created by entity module.
Comment | File | Size | Author |
---|---|---|---|
#10 | 2698775-10.patch | 1.77 KB | ilgnerfagundes |
| |||
#9 | S0i48jo - Imgur.png | 28.52 KB | ilgnerfagundes |
#7 | interdiff.txt | 1.82 KB | joelpittet |
#7 | 2698775-7-flush-cache.patch | 1.78 KB | joelpittet |
|
Comments
Comment #2
heddnComment #3
heddnComment #4
davide.taibi CreditAttribution: davide.taibi commentedIs there any news on this issue?
We have a content type with several Fields Collections (a total or nearly 900 fields) that require nearly 90 seconds only to load.
Is there any safe workaround or patches I can apply to the content type to cache the generation of the page?
Comment #5
delacosta456 CreditAttribution: delacosta456 commentedhi
hello .. yes please is there any update about this please
thanks
Comment #6
joelpittetMaybe I can add to this to help out entity cache with this patch to clear it like
og
andfieldable_panels_panes
does when cache is cleared.Comment #7
joelpittetThe difference between the others is that the creation of that table is not dependent on the entitycache module existing. Adding an extra cache table doesn't really need a module_exists check and makes things more complicated when it comes to which came first...
This is more in line with @heddn's original patch.
I fixed a double space in my patch too (thanks @jplana)
Comment #8
joelpittetStill applies cleanly with the latest release
Comment #9
ilgnerfagundes CreditAttribution: ilgnerfagundes at CI&T commentedThe patch must be updated, it does not apply
Comment #10
ilgnerfagundes CreditAttribution: ilgnerfagundes at CI&T commentedI recreated the patch
Comment #11
ilgnerfagundes CreditAttribution: ilgnerfagundes at CI&T commentedYou can test my patch please, I was wrong I was in the correct branch