Make :folder_id available as a package instance variable immediately, in a way that if the folder instantiation needs e.g. to fetch a parameter, the folder_id will be there to determine the right parameter page, which otherwise would be looked up e.g. in the site-wide pages and cached with wrong values for the cache lifetime
Make ::xowiki::Package default_locale react to changes in the connection locale by caching only when the parameter use_connection_locale is not set, use ::xowiki::Package default_locale result instead of always the connection locale to determine nls_language for new Pages and FormPages, so that default language for a particular xowiki instance is decided by use_connection_locale parameter