1 file.module file_info_cache_clear()

Clears caches that are related to file entity.

Clears all cached configuration related to file types, formatters, and display settings.

File

core/modules/file/file.module, line 2412
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_info_cache_clear() {
  // Clear the formatter type cache, managed by file_info_formatter_types().
  backdrop_static_reset('file_info_formatter_types');

  // Clear file type caches.
  backdrop_static_reset('_file_types_build');
}