projects
/
tt-rss.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87cb8dd
)
cache_media: only show downloading debug message when actually downloading
author
Andrew Dolgov
<noreply@fakecake.org>
Thu, 16 Aug 2018 08:56:51 +0000
(11:56 +0300)
committer
Andrew Dolgov
<noreply@fakecake.org>
Thu, 16 Aug 2018 08:56:51 +0000
(11:56 +0300)
classes/rssutils.php
patch
|
blob
|
history
diff --git
a/classes/rssutils.php
b/classes/rssutils.php
index bd20a6b480154195fa116502e1a396a168ca2cdd..554d89f5a63a8c587ac27932c5cc201c78facfd2 100755
(executable)
--- 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) {