The problem seems to be related to threadlocal. In Prod, according to my logs, the session is initialized with the main thread.
[2012-06-30 18:35:38,102] INFO 10097[**main**] - Mustache module initialized
, MustacheTag , .
[2012-06-30 17:48:44,669] INFO 66048[**play-thread-1**] - [{module:mustache-0.2}/app/play/modules/mustache/MustacheTags.java:46] _meta() :: MustachePlugin.session():null
, MustachePlugin this.Changed :
private static MustacheSession _session = null;
public static MustacheSession session(){
return _session;
}
public void onConfigurationRead(){
_session = new MustacheSession(compiler, root);
}
prod! , ThreadLocal, , !