Use md5 for cache key generation in ZipController

This commit is contained in:
Chris Kankiewicz
2020-06-01 17:33:41 -07:00
parent 319144a685
commit 22195e1b88

View File

@@ -65,7 +65,7 @@ class ZipController
}
$response->getBody()->write(
$this->cache->get(sprintf('zip-%s', sha1($path)), function () use ($path): string {
$this->cache->get(sprintf('zip-%s', md5($path)), function () use ($path): string {
return $this->createZip($path)->getContents();
})
);