From 08e4128ddce9dcffe0a4224ae57ad664609935b2 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Sun, 22 Dec 2024 13:06:42 +0100 Subject: Add statistics --- src/application/templates/old/base.twig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/application/templates') diff --git a/src/application/templates/old/base.twig b/src/application/templates/old/base.twig index bdad515..bdb9768 100644 --- a/src/application/templates/old/base.twig +++ b/src/application/templates/old/base.twig @@ -73,6 +73,14 @@ © {{ "now"|date("Y") }} {{ g.env.MYSTIC_FORUM_COPYRIGHT|default(g.env.MYSTIC_FORUM_TITLE)|default("Forum") }}. Powered by mysticBB v{{ constant("MYSTICBB_VERSION") }}. + + {{ __("Page generation took %dur% second(s)", { + dur: getRunTime()|round(3), + }) }}
+ {{ __("Number of database queries: %count%", { + count: getQueryCount(), + }) }} +
-- cgit v1.2.3