diff options
author | Urban Müller | 2020-07-27 17:30:16 +0200 |
---|---|---|
committer | Urban Müller | 2020-07-27 17:30:16 +0200 |
commit | 228f6f86fdbc891954ee92dd13c50eec1944dcf5 (patch) | |
tree | fec14932a99c3345fe016daa2f058093f50d6c66 | |
parent | 7f6de9bae1fbbbb452040ee26d364ff0b23645f2 (diff) | |
download | itools-228f6f86fdbc891954ee92dd13c50eec1944dcf5.tar.gz itools-228f6f86fdbc891954ee92dd13c50eec1944dcf5.tar.bz2 itools-228f6f86fdbc891954ee92dd13c50eec1944dcf5.zip |
honor lock argument for preprocessing as well
-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 { |