Update of /cvsroot/fink/web/pdb In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1351
Modified Files: functions.inc Log Message: change some defaults now that the PDB can handle it Index: functions.inc =================================================================== RCS file: /cvsroot/fink/web/pdb/functions.inc,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- functions.inc 11 Dec 2007 20:46:14 -0000 1.6 +++ functions.inc 6 Sep 2009 19:09:45 -0000 1.7 @@ -4,6 +4,7 @@ static $debug = false; static $cache_threshold = 250; // number of packages in an object before storing +static $cache_expire_last_modified = 3600; // 1 hour // Read url parameters. We use basic HTML encoding for now, and // cut off very long values, to make unforseen SQL injection hacks more difficult. @@ -44,7 +45,7 @@ if ($r != null && $r->response->numFound >0) { $date = $r->response->docs[0]->infofilechanged; $last_modified = date_create($date)->format('D, d M Y H:i:s') . ' GMT'; - memcache_set_key($_key, $last_modified, false, 7200); + memcache_set_key($_key, $last_modified, false, $cache_expire_last_modified); } else { $last_modified = gmdate('D, d M Y H:i:s') . ' GMT'; } @@ -59,7 +60,7 @@ return $returnval; } -function memcache_set_key($key, $value, $flag = false, $expire = 3600) { +function memcache_set_key($key, $value, $flag = false, $expire = 1800) { global $debug; global $memcache; if (isset($memcache) && !$debug) { @@ -133,7 +134,7 @@ protected $raw = false; protected $unique = false; protected $rows = 3000; - protected $timeout = 3600; + protected $timeout = 1800; protected $fields = array(); protected $sort = array(); ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs