Branch: Tag:

2009-04-21

2009-04-21 13:17:34 by Martin Stjernholm <mast@lysator.liu.se>

Remove nocache code in the cookie scope. It shouldn't be necessary now
with CookieJar and the vary support in the protocol cache.

5.0 compatibility note: The old nocache behavior meant that any rxml
accessing cookies implicitly disabled the protocol cache. That means
the new behavior can introduce overcaching side-effects in old code,
even if the protocol cache entries are cookie specific. Therefore the
nocache behavior is kept if the compat level is <= 4.5.

Rev: server/etc/modules/Roxen.pmod:1.276

1:   // This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS.   // - // $Id: Roxen.pmod,v 1.275 2009/04/21 12:38:00 mast Exp $ + // $Id: Roxen.pmod,v 1.276 2009/04/21 13:17:34 mast Exp $      #include <roxen.h>   #include <config.h>
4189:       mixed `[] (string var, void|RXML.Context c, void|string scope, void|RXML.Type type) {    if (!c) c = RXML_CONTEXT; +  if (c->id->conf->compat_level() < 5.0)    c->id->set_max_cache (0);    return ENCODE_RXML_TEXT(c->id->cookies[var], type);    }
4213:       array(string) _indices(void|RXML.Context c) {    if (!c) c = RXML_CONTEXT; +  if (c->id->conf->compat_level() < 5.0)    c->id->set_max_cache (0);    return indices(c->id->cookies);    }