From 6914ad1f741570b66580d2933e8e2118adb177b5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 14 Aug 2019 12:44:50 +0300 Subject: retire MIN_CACHE_FILE_SIZE --- classes/rssutils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/rssutils.php') diff --git a/classes/rssutils.php b/classes/rssutils.php index f942fad31..fe4c0a8a3 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -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)) { -- cgit v1.2.3-54-g00ecf