21 May
2004
21 May
'04
8:57 p.m.
J. David Ibanez wrote at 2004-5-21 16:50 +0200:
No, I don't use TranslationService. A quick glance at the code shows that TS uses several caches (dictionaries) which are stored in the request object: "_localizer_placeful_mc_cache", "_translation_service_cache" and "_ts_domain_cache".
The values of these dictionaries are acquisition wrappers (objects returned by "unrestrictedTraverse" or explicitly built). Maybe the leak is there.
When these dictionaries are held in "other" (or "form" or "Lazy"), then there is no problem -- as "other" is explicitly clear when the request is closed. However, when they are (direct) attributes of the request object, then they will form cycles which almost surely cause leakage. -- Dieter