pike.git / lib / modules / Search.pmod / Queue.pmod / MySQL.pike

version» Context lines:

pike.git/lib/modules/Search.pmod/Queue.pmod/MySQL.pike:243:    hascache = ([ ]);    db->query("delete from "+table);   }      void remove_uri(string|Standards.URI uri)   {    hascache[(string)uri]=0;    db->query("delete from "+table+" where uri_md5=%s", to_md5((string)uri));   }    + void remove_uri_prefix(string|Standards.URI uri) + { +  string uri_string = (string)uri; +  foreach(indices(hascache), string _uri) +  if(has_prefix(_uri, uri_string)) +  hascache[_uri]=0; +  +  db->query("delete from "+table+" where uri like '" + db->quote(uri_string) + "%%'"); + } +    void clear_stage( int ... stages )   {    foreach( stages, int s )    db->query( "update "+table+" set stage=0 where stage=%d", s );   }      void clear_md5( int ... stages )   {    foreach( stages, int s )    db->query( "update "+table+" set md5='' where stage=%d", s );