mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:55:55 +00:00
retire MIN_CACHE_FILE_SIZE
This commit is contained in:
@@ -1196,7 +1196,7 @@ class RSSUtils {
|
||||
if (!$cache->exists($local_filename)) {
|
||||
$file_content = fetch_file_contents(array("url" => $src, "max_size" => MAX_CACHE_FILE_SIZE));
|
||||
|
||||
if ($file_content && strlen($file_content) > MIN_CACHE_FILE_SIZE) {
|
||||
if ($file_content) {
|
||||
$cache->put($local_filename, $file_content);
|
||||
}
|
||||
} else if (is_writable($local_filename)) {
|
||||
@@ -1230,7 +1230,7 @@ class RSSUtils {
|
||||
|
||||
$file_content = fetch_file_contents(array("url" => $src, "max_size" => MAX_CACHE_FILE_SIZE));
|
||||
|
||||
if ($file_content && strlen($file_content) > MIN_CACHE_FILE_SIZE) {
|
||||
if ($file_content) {
|
||||
$cache->put($local_filename, $file_content);
|
||||
}
|
||||
} else if ($cache->isWritable($local_filename)) {
|
||||
|
||||
Reference in New Issue
Block a user