From bc1340af12f9360581ebcd715e8baa7d905eabfc Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 12 Jul 2021 12:27:29 -0700 Subject: [PATCH] Forced WebP caching fix. --- e107_handlers/e_thumbnail_class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e107_handlers/e_thumbnail_class.php b/e107_handlers/e_thumbnail_class.php index 8b1c9d133..d353d5fa3 100644 --- a/e107_handlers/e_thumbnail_class.php +++ b/e107_handlers/e_thumbnail_class.php @@ -238,6 +238,7 @@ class e_thumbnail $thumbnfo = $this->getImageInfo(); $options = $this->getRequestOptions(); + $fname = e107::getParser()->thumbCacheFile($this->_src_path, $options); $cache_filename = e_CACHE_IMAGE . $fname; @@ -496,6 +497,10 @@ class e_thumbnail { $ret['type'] = $this->_request['type']; } + elseif($this->_forceWebP) + { + $ret['type'] = 'webp'; + } return $ret; }