Index: openacs-4/packages/acs-lang/tcl/locale-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/locale-procs.tcl,v diff -u -r1.28 -r1.29 --- openacs-4/packages/acs-lang/tcl/locale-procs.tcl 29 Jun 2004 10:17:40 -0000 1.28 +++ openacs-4/packages/acs-lang/tcl/locale-procs.tcl 24 Jul 2004 08:34:05 -0000 1.29 @@ -287,6 +287,11 @@ set user_id [ad_conn untrusted_user_id] } + # For all the users with a user_id of 0 don't cache. + if { $user_id == 0} { + return [lang::user::site_wide_locale_not_cached $user_id] + } + # Cache for the lifetime of sessions (7 days) return [util_memoize [list lang::user::site_wide_locale_not_cached $user_id] [sec_session_timeout]] }