Prefix markdown cache key

This commit is contained in:
Chris Kankiewicz
2020-06-01 17:17:09 -07:00
parent ba1861a6f8
commit f5ecfd135f

View File

@@ -31,8 +31,11 @@ class Markdown extends ViewFunction
*/
public function __invoke(string $string): string
{
return $this->cache->get(md5($string), function () use ($string): string {
return $this->parser->parse($string);
});
return $this->cache->get(
sprintf('markdown-%s', md5($string)),
function () use ($string): string {
return $this->parser->parse($string);
}
);
}
}