From bdb371491a0b79029f180d54d76910efa8f5c79e Mon Sep 17 00:00:00 2001 From: root Date: Mon, 10 Nov 2014 21:42:55 +0100 Subject: added redis as local cache --- index.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 21f7439..5980a97 100644 --- a/index.php +++ b/index.php @@ -103,6 +103,9 @@ a { set( $key, serialize($result), 60 ); + return $result; } $header_info = getInfo($_REQUEST['url'], $_REQUEST['header']); @@ -148,6 +155,7 @@ Host: """; } ?> +
Entries are cached for 60 seconds.
@@ -198,6 +206,7 @@ Host: "" + @@ -213,7 +222,6 @@ Host: "" -