diff options
author | Andrew Dolgov <[email protected]> | 2018-08-16 11:56:51 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-08-16 11:56:51 +0300 |
commit | 163b50b15f3b163a392327692aede68e31a6204e (patch) | |
tree | c441d4cb6526e34072a162cb484073840670e478 /classes/rssutils.php | |
parent | 87cb8dd45f759d1adf824da0107825170f4c4482 (diff) |
cache_media: only show downloading debug message when actually downloading
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-x | classes/rssutils.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php index bd20a6b48..554d89f5a 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -1239,9 +1239,11 @@ class RSSUtils { $local_filename = CACHE_DIR . "/images/" . sha1($src); - if ($debug) _debug("cache_media: downloading: $src to $local_filename"); + if ($debug) _debug("cache_media: checking $src"); if (!file_exists($local_filename)) { + if ($debug) _debug("cache_media: downloading: $src to $local_filename"); + $file_content = fetch_file_contents($src); if ($file_content && strlen($file_content) > MIN_CACHE_FILE_SIZE) { |