[development] Avoid caching of specific fields in table cache_fields?
Dave Reid
dave at davereid.net
Sat Jun 25 16:13:24 UTC 2011
You can only currently disable the cache for an entity type.
See
http://api.drupal.org/api/drupal/modules--field--field.attach.inc/function/field_attach_load/7
:
$info = entity_get_info
<http://api.drupal.org/api/drupal/includes--common.inc/function/entity_get_info/7>($entity_type);
$cache_read = $load_current && $info['field cache'] &&
empty($options['deleted']);
Dave Reid
dave at davereid.net
On Sat, Jun 25, 2011 at 7:07 AM, Sven Decabooter <sdecabooter at gmail.com>wrote:
> Hi,
>
> Does anyone know if there's a way to avoid having fields cached in the
> database table cache_fields (Drupal 7)?
> This would have to be enforced from within the module that defines the
> field, regardless of which entity the field is attached to..
>
> After digging in the code I suppose it's just not possible, but if you have
> any pointers, let me know!
> Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110625/716e9311/attachment.html
More information about the development
mailing list