summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2020-07-27 17:30:16 +0200
committerUrban Müller2020-07-27 17:30:16 +0200
commit228f6f86fdbc891954ee92dd13c50eec1944dcf5 (patch)
treefec14932a99c3345fe016daa2f058093f50d6c66
parent7f6de9bae1fbbbb452040ee26d364ff0b23645f2 (diff)
downloaditools-228f6f86fdbc891954ee92dd13c50eec1944dcf5.tar.gz
itools-228f6f86fdbc891954ee92dd13c50eec1944dcf5.tar.bz2
itools-228f6f86fdbc891954ee92dd13c50eec1944dcf5.zip
honor lock argument for preprocessing as well
-rw-r--r--it_url.class4
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
{