As reported by the devel module, these queries often run multiple times. This is from one page load:
0.27 2 _filter_tips SELECT * FROM filter_formats WHERE format = 1
0.19 2 _filter_tips SELECT * FROM filter_formats WHERE format = 2
0.39 2 _filter_tips SELECT * FROM filter_formats WHERE format = 3
0.26 2 _filter_tips SELECT * FROM filter_formats WHERE format = 4
0.21 2 _filter_tips SELECT * FROM filter_formats WHERE format = 5

Which is 5 extra queries.

Comments

casey’s picture

Status: Active » Fixed

_filter_tips() calls filter_formats() now, which uses drupal_static() to cache the query.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.