Checks if the text in a certain text format is allowed to be cached.
This function can be used to check whether the result of the filtering process can be cached. A text format may allow caching depending on the filters enabled.
$format_id: The text format ID to check.
TRUE if the given text format allows caching, FALSE otherwise.
function filter_format_allowcache($format_id) {
$format = filter_format_load($format_id);
return !empty($format->cache);
}