From c11f816204dfce29e16172e3582b8c698c8b8a36 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Sun, 31 Jul 2005 13:18:18 +0000 Subject: [PATCH] let examples use the new features git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@496 152afb58-edef-0310-8abb-c4023f1b3aa9 --- doc/authentication.txt | 2 +- doc/cml.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/authentication.txt b/doc/authentication.txt index fbde7468..e2230cc7 100644 --- a/doc/authentication.txt +++ b/doc/authentication.txt @@ -182,7 +182,7 @@ Configuration ( "method" => "digest", "realm" => "download archiv", - "require" => "user=jan" + "require" => "valid-user" ) ) diff --git a/doc/cml.txt b/doc/cml.txt index 75e45e6b..08a03284 100644 --- a/doc/cml.txt +++ b/doc/cml.txt @@ -109,9 +109,9 @@ and the following index.cml file: :: if file_mtime(b .. "../lib/php/menu.csv") > file_mtime(cwd .. "_cache.html") or file_mtime(b .. "templates/jk.tmpl") > file.mtime(cwd .. "_cache.html") file.mtime(b .. "content.html") > file.mtime(cwd .. "_cache.html") then - return 1 + return CACHE_MISS else - return 0 + return CACHE_HIT end Numbers again: @@ -152,7 +152,7 @@ The index.cml for this looks like: :: cwd .. "news.html", cwd .. "footer.html" } - return 0 + return CACHE_HIT Now we get about 10000 req/s instead of 600 req/s.