Branch: Tag:

2001-04-19

2001-04-19 13:54:09 by Jonas Wallden <jonasw@roxen.com>

Make the SiteBuilder Content Editor 5-10x faster...

Rev: server/base_server/cache.pike:1.67

1:   // This file is part of Roxen Webserver.   // Copyright © 1996 - 2000, Roxen IS. - // $Id: cache.pike,v 1.66 2001/04/08 23:08:05 per Exp $ + // $Id: cache.pike,v 1.67 2001/04/19 13:54:09 jonasw Exp $      #pragma strict_types   
228:   //! the @[cache_id]. This cache does not garb, hence it should be   //! used for storing data where its size is well controled.   void nongarbing_cache_set(string cache_id, string key, mixed value) { -  if(nongc_cache[cache_id]) nongc_cache[cache_id][key] = value; +  if(nongc_cache[cache_id]) +  nongc_cache[cache_id][key] = value; +  else    nongc_cache[cache_id] = ([ key:value ]);   }