/
Extra 8 sqls on each page load [5.2.0]

Extra 8 sqls on each page load [5.2.0]

Imported from: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/d0163f9491e62a14#

I've recently noticed that during 

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.
development we added a code, that displays all enabled languages in system to user in "Language" field dropdown on his profile page.

Problem is that we don't cache it and querying these languages could cost up to 8 sqls each time user object is created.

user_frontlanguage_field_wastes_8sqls_each_time.patch

Related Tasks

Unable to locate Jira server for this macro. It may be due to Application Link configuration.

Unable to locate Jira server for this macro. It may be due to Application Link configuration.