diff options
author | Andrew Dolgov <[email protected]> | 2014-06-27 09:11:32 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-06-27 09:11:32 +0400 |
commit | c7a0cb7cf42ebdeb19e2dbe971f569d2991b15fd (patch) | |
tree | 64d3f6d83906802c13273b343b4fcf5644c3cfa0 | |
parent | c6f9438a6ec2940f3fd1dd9668a049c283f45ef5 (diff) | |
parent | a3d50184909491a64e4048ce75dae3590e462fb7 (diff) |
Merge pull request #385 from dzaikos/cache-image-size-2
Cache image size (take 2)
-rw-r--r-- | include/rssfuncs.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 010071e57..60cb3b2d2 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -2,6 +2,7 @@ define_default('DAEMON_UPDATE_LOGIN_LIMIT', 30); define_default('DAEMON_FEED_LIMIT', 500); define_default('DAEMON_SLEEP_INTERVAL', 120); + define_default('_MIN_CACHE_IMAGE_SIZE', 1024); function update_feedbrowser_cache() { @@ -1173,7 +1174,7 @@ if (!file_exists($local_filename)) { $file_content = fetch_file_contents($src); - if ($file_content && strlen($file_content) > 1024) { + if ($file_content && strlen($file_content) > _MIN_CACHE_IMAGE_SIZE) { file_put_contents($local_filename, $file_content); } } |