diff options
-rw-r--r-- | it_url.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class index f48c7f9..cc38fff 100644 --- a/it_url.class +++ b/it_url.class @@ -580,7 +580,7 @@ static function get_cache($p = array()) if ($filemtime = $newfile ? true : it_url::_expired($path, $p['maxage'])) # Outdated(non-zero int) or non-existant(true)? { - if ($lock = it_url::_lock($path)) + if ($lock = it_url::_lock($path, $p)) { # Touch existing file to prevent locking other getters while refreshing if ($filemtime !== true) @@ -603,7 +603,7 @@ static function get_cache($p = array()) } $cachemiss = 1; - it_url::_unlock($path, $lock); + it_url::_unlock($path, $lock, $p); } else { |