Browse Source

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
svn/heads/lighttpd-1.3.x
Jan Kneschke 17 years ago
parent
commit
c11f816204
  1. 2
      doc/authentication.txt
  2. 6
      doc/cml.txt

2
doc/authentication.txt

@ -182,7 +182,7 @@ Configuration
(
"method" => "digest",
"realm" => "download archiv",
"require" => "user=jan"
"require" => "valid-user"
)
)

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

Loading…
Cancel
Save