mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 13:41:29 +00:00
cache_images: set a lower size limit for stuff to cache
This commit is contained in:
@@ -1335,7 +1335,7 @@
|
|||||||
if (!file_exists($local_filename)) {
|
if (!file_exists($local_filename)) {
|
||||||
$file_content = fetch_file_contents($src);
|
$file_content = fetch_file_contents($src);
|
||||||
|
|
||||||
if ($file_content) {
|
if ($file_content && strlen($file_content) > 1024) {
|
||||||
file_put_contents($local_filename, $file_content);
|
file_put_contents($local_filename, $file_content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user