$size, 'mtime' => $mtime, 'sha256' => (string) hash_file('sha256', $path)]; set_setting('manual_file_cache', json_encode($cache)); } return ['size' => $size, 'modified_at' => date('Y-m-d H:i:s', $mtime), 'sha256' => (string) $cache['sha256']]; }