cvs: phpweb /include shared-manual.inc
| From: | Sascha Schumann | Date: | Fri, 21 Sep 2001 18:13:52 +0000 |
| Subject: | cvs: phpweb /include shared-manual.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6533@lists.php.net to get a copy of this message | ||
sas Fri Sep 21 14:13:52 2001 EDT
Modified files:
/phpweb/include shared-manual.inc
Log:
reenable fetching user-notes and increase max-age to 10 minutes
Index: phpweb/include/shared-manual.inc
diff -u phpweb/include/shared-manual.inc:1.116 phpweb/include/shared-manual.inc:1.117
--- phpweb/include/shared-manual.inc:1.116 Fri Sep 21 12:12:26 2001
+++ phpweb/include/shared-manual.inc Fri Sep 21 14:13:52 2001
@@ -175,7 +175,7 @@
// otherwise look in "/manual/usernotes/$title.txt" (if present)
global $MYSITE;
$notes = array();
- if (0 && is_primary_site() &&
@mysql_connect("localhost","nobody","")) {
+ if (is_primary_site() &&
@mysql_connect("localhost","nobody","")) {
mysql_select_db("php3");
$query = "SELECT *,UNIX_TIMESTAMP(ts) AS xwhen FROM note WHERE sect='$id' AND NOT
removed ORDER BY id";
$result_id = mysql_query($query);
@@ -267,7 +267,7 @@
function sendManualHeaders($charset,$lang) {
global $LANG;
$LANG = $lang;
- Header("Cache-Control: public, max-age=300");
+ Header("Cache-Control: public, max-age=600");
Header("Content-type: text/html;charset=$charset");
Header("Content-language: $lang");
}