From 228f6f86fdbc891954ee92dd13c50eec1944dcf5 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 27 Jul 2020 17:30:16 +0200 Subject: honor lock argument for preprocessing as well --- it_url.class | 4 ++-- 1 file 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 { -- cgit v1.2.3