2014-01-31 | Paul Boddie | raw files shortlog changelog graph | Fetch a resource if its cache entry is of zero size, for whatever reason. | |
MoinRemoteSupport.py (file) |
1.1 --- a/MoinRemoteSupport.py Wed Jan 29 19:22:48 2014 +0100 1.2 +++ b/MoinRemoteSupport.py Fri Jan 31 18:55:38 2014 +0100 1.3 @@ -56,7 +56,7 @@ 1.4 # NOTE: The URL could be checked and the 'If-Modified-Since' header 1.5 # NOTE: (see MoinMoin.action.pollsistersites) could be checked. 1.6 1.7 - if not cache_entry.exists() or now - mtime >= max_cache_age: 1.8 + if not cache_entry.exists() or cache_entry.size() == 0 or now - mtime >= max_cache_age: 1.9 1.10 # Access the remote data source. 1.11