From 19aa62f28963f261fbeee7abc12af58fdabe36df Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 14 Nov 2019 13:26:42 +0900 Subject: [PATCH] Update webpagetool.php --- helper/webpagetool.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 258e403e..b11f5856 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -487,8 +487,8 @@ function get_web_identifier($url, $method="get", $data=array(), $headers=array() 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() - + $config = get_config(); + $cache_enabled = array_key_equals("cache_enabled", $config, 1); // max_age(seconds), the value 0 is forever $cache_max_age = intval(get_value_in_array("cache_max_age", $config, 0));