[Aminet-commit] r133 - trunk/phpinclude/include
aminet-discuss at aminet.net
aminet-discuss at aminet.net
Thu Apr 10 03:11:10 CEST 2008
Author: mendoza
Date: 2008-04-09 18:11:10 -0700 (Wed, 09 Apr 2008)
New Revision: 133
Modified:
trunk/phpinclude/include/search.php
Log:
Oops cache time was set to 50 minutes, not 5
Modified: trunk/phpinclude/include/search.php
===================================================================
--- trunk/phpinclude/include/search.php 2008-04-10 00:59:13 UTC (rev 132)
+++ trunk/phpinclude/include/search.php 2008-04-10 01:11:10 UTC (rev 133)
@@ -4,7 +4,7 @@
# $page = "Search";
-$cachetime = 60 * 50;
+$cachetime = 60 * 5;
function cachefile_hash($_SEARCH) {
global $amirepo_root;
@@ -41,7 +41,7 @@
$cachefile = cachefile_hash($_SEARCH);
if (file_exists($cachefile) ) {
$stat = stat($cachefile);
- aminet_log("found cache file: $cachefile");
+ aminet_log("found cache file: $cachefile ($stat[9], ".time()." - $cachetime) (".$_SERVER['REQUEST_URI'].")");
if ($stat[9] > (time() - $cachetime)
|| ( file_exists("$cachefile.lock") && $stat[9] > (time() - $cachetime * 2) ) ) {
aminet_log("fetching from cachefile: $cachefile (".$_SERVER['REQUEST_URI'].")");
More information about the Aminet-commit
mailing list