Skip to content

Commit

Permalink
Update webpagetool.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Nov 14, 2019
1 parent 03662ad commit 19aa62f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/webpagetool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 19aa62f

Please sign in to comment.