pike.git / lib / modules / Search.pmod / Utils.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Utils.pmod:1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Utils.pmod,v 1.30 2001/08/26 23:04:17 js Exp $ + // $Id: Utils.pmod,v 1.31 2001/08/31 16:20:04 js Exp $      #if !constant(report_error)   #define report_error werror   #endif      public array(string) tokenize_and_normalize( string what )   //! This can be optimized quite significantly when compared to   //! tokenize( normalize( x ) ) in the future, currently it's not all   //! that much faster, but still faster.   {
pike.git/lib/modules/Search.pmod/Utils.pmod:388:    if(ids[0]==p || ids[1]==p)    m_delete(entry_cache, id);    }    }       //! Empty the whole cache.    void flush_cache() {    value_cache = ([]);    db_profile_names = ([]);    query_profile_names = ([]); +  last_db_prof_stat = 0; +  last_query_prof_stat = 0;    }   }      private mapping(string:ProfileCache) profile_cache_cache = ([]);      ProfileCache get_profile_cache(string db_name) {    if(profile_cache_cache[db_name])    return profile_cache_cache[db_name];    return profile_cache_cache[db_name] = ProfileCache(db_name);   }