Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:4489:    // Note: The OPTIMIZE TABLE step has been disabled. /mast    int now = time();    mapping info = localtime(now);    int wait = (int) ((24 - info->hour) + 24 + 4.5) * 3600 + random(500);    background_run(wait, do_cleanup);       // Remove items older than one week    flush(now - 7 * 3600 * 24);    }    -  void create( string id, function draw_func ) +  protected void create( string id, function draw_func )    //! Instantiate an image cache of your own, whose image files will    //! be stored in a table `id' in the cache mysql database,    //!    //! The `draw_func' callback passed will be responsible for    //! (re)generation of the images in the cache. Your draw callback    //! may take any arguments you want, depending on the first argument    //! you give the <ref>store()</ref> method, but its final argument    //! will be the RequestID object.    //!    //! @note
Roxen.git/server/base_server/roxen.pike:4519:    name = id;    draw_function = draw_func;    init_db();    // Support that the 'local' database moves.    master()->resolv( "DBManager.add_dblist_changed_callback" )( init_db );       // Always remove entries that are older than one week.    background_run( 10, do_cleanup );    }    -  void destroy() +  protected void destroy()    {    if (mixed err = catch(sync_meta())) {    report_warning("Failed to sync cached atimes for "+name+"\n");   #if 0   #ifdef DEBUG    master()->handle_error (err);   #endif   #endif    }    }