Avoid caching of specific fields in table cache_fields?
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
You can only currently disable the cache for an entity type. See http://api.drupal.org/api/drupal/modules--field--field.attach.inc/function/f... : $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@davereid.net On Sat, Jun 25, 2011 at 7:07 AM, Sven Decabooter <sdecabooter@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
participants (2)
-
Dave Reid -
Sven Decabooter