i want to change theme_username, a core theme function that outputs that dreadful "not verified" string on users who are not logged in (when they comment, for example). i want a checkbox in admin/build/themes/settings/MYTHEME to change that. but since that theme function gets called a lot, will it hurt the performance of any site using my theme or are theme settings cached?
Asked
Active
Viewed 325 times
2 Answers
2
Theme settings are cached as specified in the Drupal API page for theme_get_setting($setting_name, $refresh = FALSE)
.

sirhc
- 6,097
- 2
- 26
- 29
0
Theme settings is usually stored with variable_set. So you need a query to check it. But you can cache the result yourself, with a static variable.

googletorp
- 33,075
- 15
- 67
- 82