I have a custom field/widget that has a format view function that is highly resource intensive. I currently am caching the result using
cache_set()/cache_get() inside the
hook_field_formatter_view function for my field.
Is there a better way I could be doing this? I tried to use
#cache property and it cached the output but still ran my
Basically, I know how to do full page cache (for anonymous users) but how do you cache a field/node/entity (for everyone)?