diff options
author | Andrew Dolgov <[email protected]> | 2019-08-14 12:52:39 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-08-14 12:52:39 +0300 |
commit | 46f54330a29b1c7964737bd1b358eeb1bbed50ea (patch) | |
tree | 2778bc4c97e802d78e9f22ee19f29248cd75cff0 /init.php | |
parent | 6aba09ee3399d8c5607705e730fd575be62fb3ef (diff) |
consistency: use DiskCache->exists() to check for present files
Diffstat (limited to 'init.php')
-rwxr-xr-x | init.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -286,7 +286,7 @@ class Af_Zz_Img_Phash extends Plugin { if ($this->cache->isWritable()) { $cached_file = sha1($src); - if ($this->cache->getSize($cached_file) <= 0) { + if (!$this->cache->exists($cached_file)) { $data = fetch_file_contents(array("url" => $src, "max_size" => MAX_CACHE_FILE_SIZE)); if ($data) { |