Branch: Tag:

2002-04-15

2002-04-15 08:29:23 by 0

Make the file size limit in the protocol-level cache actually work.

Rev: server/base_server/configuration.pike:1.509

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.508 2002/04/12 16:23:16 wellhard Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.509 2002/04/15 08:29:23 jonasw Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
256:       void set( string url, string data, mapping meta, int expire )    { -  if( strlen( data ) > max_size ) return; +  if( strlen( data ) > max_file_size ) return;    call_out( expire_entry, expire, url );    current_size += strlen( data );    cache[url] = ({ data, meta });