Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.127 1998/05/21 18:24:03 grubba Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.128 1998/06/02 16:37:33 grubba Exp $";   constant thread_safe=1;      #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0   #endif /* VAR_MORE */
Roxen.git/server/modules/graphics/graphic_text.pike:700:   }      string base_key;   object mc;         array to_clean = ({});   void clean_cache_dir()   {    if(!sizeof(to_clean)) -  to_clean = get_dir(query("cache_dir")); +  to_clean = get_dir(query("cache_dir"))||({});    if(!sizeof(to_clean)) return;    array st = file_stat(query("cache_dir")+to_clean[0]);    int md;    if (st) {    md = st[ST_ATIME];    }       /* NOTE: We assume that time() is larger than query("cache_age")*3600 */       if((time() - md) > (query("cache_age")*3600))