1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:06:02 +00:00

retire MIN_CACHE_FILE_SIZE

This commit is contained in:
Andrew Dolgov
2019-08-14 12:44:50 +03:00
parent 84974c60a7
commit 6914ad1f74
4 changed files with 5 additions and 11 deletions

View File

@@ -141,13 +141,9 @@ class Cache_Starred_Images extends Plugin {
$data = fetch_file_contents(["url" => $url, "max_size" => MAX_CACHE_FILE_SIZE]);
if ($data) {
if (strlen($data) > MIN_CACHE_FILE_SIZE) {
$this->cache->put($local_filename, $data);
}
if ($data)
return $this->cache->put($local_filename, $data);;
return true;
}
} else {
//Debug::log("cache_images: local file exists for $url", Debug::$LOG_VERBOSE);