1 field.info.inc | field_info_cache_clear() |
Clears the field info cache without clearing the field data cache.
This is useful when deleted fields or instances are purged. We need to remove the purged records, but no actual field data items are affected.
Related topics
File
- core/
modules/ field/ field.info.inc, line 27 - Field Info API, providing information about available fields and field types.
Code
function field_info_cache_clear() {
backdrop_static_reset('field_view_mode_settings');
backdrop_static_reset('field_available_languages');
backdrop_static_reset('field_info_field_map');
// @todo: Remove this when field_attach_*_bundle() bundle management
// functions are moved to the entity API.
entity_info_cache_clear();
_field_info_collate_types_reset();
_field_info_collate_fields_reset();
cache()->delete('field_block_list');
}