Update of /cvsroot/fink/web/pdb
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22364

Modified Files:
        functions.inc 
Log Message:
try shortening the last_modified cache

Index: functions.inc
===================================================================
RCS file: /cvsroot/fink/web/pdb/functions.inc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- functions.inc       6 Sep 2009 19:09:45 -0000       1.7
+++ functions.inc       7 Sep 2009 03:38:22 -0000       1.8
@@ -4,7 +4,6 @@
 
 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.
@@ -45,7 +44,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, 
$cache_expire_last_modified);
+             memcache_set_key($_key, $last_modified, false, 1800);
           } else {
              $last_modified = gmdate('D, d M Y H:i:s') . ' GMT';
           }


------------------------------------------------------------------------------
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

Reply via email to