diff options
author | Urban Müller | 2007-02-01 14:20:26 +0000 |
---|---|---|
committer | Urban Müller | 2007-02-01 14:20:26 +0000 |
commit | 574f2790c1bf54600a9a819aab541782c6a2b2a5 (patch) | |
tree | 00b54666fe30437cc5d477148fe06b556c88db16 /url.class | |
parent | 7c7bd01f8fc22b2c1b2dc1788bfd30a8dc427abf (diff) | |
download | itools-574f2790c1bf54600a9a819aab541782c6a2b2a5.tar.gz itools-574f2790c1bf54600a9a819aab541782c6a2b2a5.tar.bz2 itools-574f2790c1bf54600a9a819aab541782c6a2b2a5.zip |
non-locking keepfailed refresh
Diffstat (limited to 'url.class')
-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); |