1.20.x entity.module entity_info_cache_clear()

Resets the cached information about entity types.

File

modules/entity/entity.module, line 328
Entity API for handling entities like nodes or users.

Code

function entity_info_cache_clear() {
  backdrop_static_reset('entity_get_info');
  // Clear all languages.
  cache()->deletePrefix('entity_info:');
}