function field_cache_clear

Clears the field info and field data caches.

Related topics

17 calls to field_cache_clear()
FieldAttachStorageTest::testFieldAttachSaveMissingData in drupal/core/modules/field/lib/Drupal/field/Tests/FieldAttachStorageTest.php
Tests insert and update with missing or NULL fields.
FieldAttachStorageTest::testFieldAttachSaveMissingDataDefaultValue in drupal/core/modules/field/lib/Drupal/field/Tests/FieldAttachStorageTest.php
Test insert with missing or NULL fields, with default value.
FieldInfoTest::testFieldPrepare in drupal/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php
Test that cached field definitions are ready for current runtime context.
FieldInfoTest::testInstancePrepare in drupal/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php
Test that cached instance definitions are ready for current runtime context.
field_attach_create_bundle in drupal/core/modules/field/field.attach.inc
Notifies field.module that a new bundle was created.

... See full list

File

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

Code

function field_cache_clear() {
  cache('field')
    ->deleteAll();
  field_info_cache_clear();
}