Resets the text format caches.
function filter_formats_reset() {
cache()
->deleteTags(array(
'filter_formats' => TRUE,
));
cache()
->delete('filter_list_format');
drupal_static_reset('filter_list_format');
drupal_static_reset('filter_formats');
}