Branch: Tag:

2001-03-07

2001-03-07 14:52:36 by Jonas Wallden <jonasw@roxen.com>

Resolve [bug 1213 (#1213)] where some browsers triggered excessive recompilations
of wizards by sending Pragma: No-Cache headers.

Rev: server/base_server/wizard.pike:1.130

1:   // Wizard generator   // This file generats all the nice wizards   // Copyright © 1997 - 2000, Roxen IS. - // $Id: wizard.pike,v 1.129 2001/03/05 18:14:39 nilsson Exp $ + // $Id: wizard.pike,v 1.130 2001/03/07 14:52:36 jonasw Exp $      /* wizard_automaton operation (old behavior if it isn't defined):   
814:   mapping get_actions(RequestID id, string base,string dir, array args)   {    mapping acts = ([ ]); -  if(id->pragma["no-cache"]) wizards=([]); +  +  // Cannot clear wizard cache since it will trigger massive recompiles of +  // wizards from inside SiteBuilder. It also breaks wizards which use +  // persistent storage. +  // +  // if(id->pragma["no-cache"]) wizards=([]); +     foreach(get_dir(dir), string act)    {    mixed err;
865:   mixed wizard_menu(RequestID id, string dir, string base, mixed ... args)   {    mapping acts; -  if(id->pragma["no-cache"]) wizards=([]); +     -  +  // Cannot clear wizard cache since it will trigger massive recompiles of +  // wizards from inside SiteBuilder. It also breaks wizards which use +  // persistent storage. +  // +  // if(id->pragma["no-cache"]) wizards=([]); +     if(!id->variables->sm)    id->variables->sm = focused_wizard_menu;    else