From 9376ddee188693e983df55dc87e427938c1f52af Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 16 Sep 2015 16:12:38 +0200 Subject: support keepfailed in conjunction with failed preprocessors --- it_url.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index 984f621..33bf4b1 100644 --- a/it_url.class +++ b/it_url.class @@ -702,7 +702,8 @@ function get_cache($p = array()) if (!($result = @filesize($dstpath) && @rename($dstpath, $path))) { @unlink($dstpath); - @unlink($path); + if (!$p['keepfailed']) + @unlink($path); } it_url::_unlock($path, $lock); -- cgit v1.2.3