mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 14:35:55 +00:00
cache_media: only show downloading debug message when actually downloading
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user