From c73419b220ff7d7328d1a2afb3d6b8b335510aff Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 13 Nov 2019 17:07:32 +0900 Subject: [PATCH] Update webpagetool.php --- helper/webpagetool.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 22abfda..e4bda65 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -487,10 +487,12 @@ if(!check_function_exists("get_web_identifier")) { if(!check_function_exists("get_web_cache")) { function get_web_cache($url, $method="get", $data=array(), $proxy="", $ua="", $ct_out=45, $t_out=45, $headers=array()) { $content = false; + $config = get_config(); $identifier = get_web_identifier($url, $method, $data); $gz_content = read_storage_file($identifier, array( - "storage_type" => "cache" + "storage_type" => "cache", + "max_age" => get_value_in_array("cache_max_age", $options, 0) )); if($gz_content === false) {