function field_cache_clear

Clear the field info and field data caches.

Related topics

17 calls to field_cache_clear()
DrupalWebTestCase::tearDown in drupal/modules/simpletest/drupal_web_test_case.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
FieldAttachStorageTestCase::testFieldAttachSaveMissingData in drupal/modules/field/tests/field.test
Tests insert and update with missing or NULL fields.
FieldAttachStorageTestCase::testFieldAttachSaveMissingDataDefaultValue in drupal/modules/field/tests/field.test
Test insert with missing or NULL fields, with default value.
FieldFormTestCase::testNestedFieldForm in drupal/modules/field/tests/field.test
Tests Field API form integration within a subform.
FieldInfoTestCase::testFieldPrepare in drupal/modules/field/tests/field.test
Test that cached field definitions are ready for current runtime context.

... See full list

File

drupal/modules/field/field.module, line 744
Attach custom data fields to Drupal entities.

Code

function field_cache_clear() {
  cache_clear_all('*', 'cache_field', TRUE);
  field_info_cache_clear();
}