Branch: Tag:

1996-12-10

1996-12-10 04:24:48 by Per Hedbor <ph@opera.com>

Better 'cache status' screen

Rev: server/base_server/cache.pike:1.4
Rev: server/modules/graphics/graphic_text.pike:1.17

1: - string cvs_version="$Id: graphic_text.pike,v 1.16 1996/12/10 04:19:52 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.17 1996/12/10 04:21:11 per Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";
415:    if(size) return data[1];    return data[0];    } -  +     // Nothing found in the cache. Generate a new image.    -  data = cache_lookup("fonts:fonts", -  args->font+args->justift+":"+ -  args->xpad+":"+args->ypad); +  +  +  string key = args->font+args->justift+":"+args->xpad+":"+args->ypad; +  data = cache_lookup("fonts", key);    if(!data)    {    data = load_font(args->font, lower_case(args->talign||"left"),(int)args->xpad,(int)args->ypad); -  cache_set("fonts:fonts", args->font, data); +  cache_set("fonts", key, data);    }       // Fonts and such are now initialized.