From 574f2790c1bf54600a9a819aab541782c6a2b2a5 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 1 Feb 2007 14:20:26 +0000 Subject: non-locking keepfailed refresh --- url.class | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/url.class b/url.class index 5e18490..023df60 100644 --- a/url.class +++ b/url.class @@ -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); -- cgit v1.2.3