diff --git a/lib/Cache.php b/lib/Cache.php index 950a12a..68c823a 100644 --- a/lib/Cache.php +++ b/lib/Cache.php @@ -100,6 +100,8 @@ class Cache { $name = strtolower($name); + $cacheFile = PUBLIC_CACHE_DIR . "/" . $name; + $ext = substr($name, strrpos($name, ".") + 1); if ($skipExtensionCheck || strtolower($ext) == "jpg" || strtolower($ext) == "jpeg" || strtolower($ext) == "png" || strtolower($ext) == "webp"){ $size = strlen($data);