diff options
-rw-r--r-- | url.class | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -354,6 +354,11 @@ function get_cache($p = array()) { # my job to refresh the cache entry fclose($dummy); + + # Touch existing file to prevent locking other getters + if (file_exists($path)) + @touch($path); + EDC('getcache', "refresh", $p['url'], $path); if (($result = it_url::get($p['url'], $p['timeout']))) it_url::_atomicwrite($path, $result); |