diff --git a/app/cache.php b/app/cache.php new file mode 100644 index 0000000..69eee48 --- /dev/null +++ b/app/cache.php @@ -0,0 +1,27 @@ +' . (new Parsedown())->text(file_get_contents($filePath)) . ''; + setCachedMarkdown($filePath, $html); + echo $html; } - echo '
' . (new Parsedown())->text(file_get_contents($filePath)) . '
'; } elseif (in_array($ext, ['html', 'php'])) { include $filePath; }