diff options
-rw-r--r-- | it_url.class | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/it_url.class b/it_url.class index 5dcc757..4eeb8f5 100644 --- a/it_url.class +++ b/it_url.class @@ -437,15 +437,16 @@ function get_cache($p = array()) } else $result = $path; + + if ($result) + { + EDC('getcache', "processold", $p['url'], $path); + touch($result, @filemtime($srcpath)); # Ensure processed is never newer than src + } } else $result = it_url::_waitforpath($p + array('path' => $path)); - if ($result) - { - EDC('getcache', "processold", $p['url'], $path); - touch($result, @filemtime($srcpath)); # Ensure processed is never newer than src - } } # cache cleanup at night |