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

@@ -67,7 +67,7 @@ class Af_Zz_ImgProxy extends Plugin {
$disable_cache = $this->host->get($this, "disable_cache");
if (!$disable_cache && strlen($data) > MIN_CACHE_FILE_SIZE) {
if (!$disable_cache) {
if ($this->cache->put($local_filename, $data)) {
header("Location: " . $this->cache->getUrl($local_filename));
return;