Drupal Association members fund grants that make connections all over the world.
While profiling a Drupal 7 site, I noticed that htmlpurifier has a setting for double caching of the filter, and that this is set to FALSE by default. However the check_markup() cache caches the output of the entire text format, which may have any number of filters in use - and which may benefit from caching.
Additionally, text module now caches check_markup() output in the field cache as part of text_field_load() - this means there is no additional cache entry or cache_get()/set() when using text fields (which there used to be with check_markup() in D6) - the only double caching in this case would be a slightly larger field cache entry.
Another side effect of this, is that disabling the filter cache means that hook_filter_info() is called on every request, and htmlpurifier_filter_info() is currently causing a variable_set() on every request, will open an issue for that as soon as I've finished typing up this one.
In light of this, I'd suggest removing the feature altogether, attached a patch for that.
Also, while there is a setting for this, core currently doesn't update filter cache status when hook_filter_info() changes, see bug report at. I implemented a workaround for this at but not sure what to do about the update numbering in htmlpurifer.install so left that for now.