if (null !== $cache) {
Files::mkdir($cache);
- $hash = self::filehash($file, $page, $rect, $options);
+ $hash = self::extractAreaFilehash($file, $page, $rect, $options);
$cacheFileWithoutExt = $cache . $hash;
$cacheFile = $cacheFileWithoutExt . '.' . $extension;
return $res;
}
- public static function filehash($file, $page, $rect, $options)
+ public static function extractAreaFilehash($file, $page, $rect, $options)
{
$f = Files::hashFileAttributes($file) . '||' . '++' . json_encode($rect) . '**' . json_encode($options) . '||' . $page . '!!';
return hash('sha256', $f);