summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2009-05-19 17:47:32 +0000
committerUrban Müller2009-05-19 17:47:32 +0000
commitb7369933d3a0f6f7c6848e352f45e4385a73bfde (patch)
treef859ba702ea9c8022f022a0fc0311426acbcc729 /it_url.class
parent18ab36b9557b92c3c97e47eb195f2514247c5918 (diff)
downloaditools-b7369933d3a0f6f7c6848e352f45e4385a73bfde.tar.gz
itools-b7369933d3a0f6f7c6848e352f45e4385a73bfde.tar.bz2
itools-b7369933d3a0f6f7c6848e352f45e4385a73bfde.zip
bugfix: only adapt processed stamps if there was any processing
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class11
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