From 6fd03996949f32f51bf5ba55bf50d10d1521f22d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 29 May 2017 23:14:42 +0300 Subject: tunables: * add CACHE_MAX_DAYS as a tunable generic expiry interval for various cached files * add some comments to tunables in functions.php * rename _MIN_CACHE_FILE_SIZE to MIN_CACHE_FILE_SIZE * respect MIN_CACHE_FILE_SIZE setting in a few more places where content is cached --- plugins/af_zz_imgproxy/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/af_zz_imgproxy') diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_zz_imgproxy/init.php index 7de0c0229..870e12a08 100644 --- a/plugins/af_zz_imgproxy/init.php +++ b/plugins/af_zz_imgproxy/init.php @@ -69,7 +69,7 @@ class Af_Zz_ImgProxy extends Plugin { $disable_cache = $this->host->get($this, "disable_cache"); - if (!$disable_cache) { + if (!$disable_cache && strlen($data) > MIN_CACHE_FILE_SIZE) { if (file_put_contents($local_filename, $data)) { $mimetype = mime_content_type($local_filename); header("Content-type: $mimetype"); -- cgit v1.2.3