mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-22 21:54:15 +02:00
Prefix markdown cache key
This commit is contained in:
@@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user