I'm not sure what versions this affects but in at least one branch, the first line of code in location_views.module is this:
define('LOCATION_VIEWS_UNKNOWN', t('unknown'));
This is a disaster for performance because it causes locale_refresh_cache to be called on every page load. This can cause hundreds of queries.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | location_views-DRUPAL-5--netcologne.patch | 4.71 KB | uli |
Comments
Comment #1
uliThe solution is to take the constant out and replace it with t('unknown').
Comment #2
robertdouglass commentedhttp://drupal.org/node/193089
However the patch at 193089 takes the point of view that 'unknown' need not be translated. I'm unsure because I haven't read the code carefully, so decide which patch to use based on some study of the use of the string in the module.